All files / src/discovery index.ts

100% Statements 12/12
100% Branches 0/0
100% Functions 9/9
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43                                            3x 4x 4x 4x 4x 4x           4x     3x 4x 4x        
/**
 * Discovery module - auto-detection of GitLab configuration
 *
 * @example
 * ```typescript
 * import { autoDiscover, formatDiscoveryResult } from './discovery';
 *
 * // Auto-discover and apply configuration
 * const result = await autoDiscover();
 * if (result) {
 *   console.log(`Detected: ${result.host}/${result.projectPath}`);
 * }
 *
 * // Dry run - see what would be detected
 * const result = await autoDiscover({ dryRun: true });
 * if (result) {
 *   console.log(formatDiscoveryResult(result));
 * }
 * ```
 */
 
// Git remote parsing
export {
  parseGitRemote,
  parseRemoteUrl,
  parseGitConfig,
  selectBestRemote,
  listGitRemotes,
  GitRemoteInfo,
  ParseGitRemoteOptions,
} from "./git-remote";
 
// Profile matching
export { matchProfileByHost, findProfileByHost, ProfileMatchResult } from "./profile-matcher";
 
// Auto-discovery orchestrator
export {
  autoDiscover,
  formatDiscoveryResult,
  AutoDiscoveryOptions,
  AutoDiscoveryResult,
} from "./auto";