Skip to content

Commit 2e52de9

Browse files
committed
repos
1 parent 405e9b5 commit 2e52de9

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/commands/settings/index.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { runAuditLogsSettings } from './audit-logs.js';
2+
import { runRepos } from './repos.js';
23
import { runBranchesAll, runBranchesDefault, runBranchesUpdateDefault } from './branches.js';
34
import { runFeatureFlagsGet, runFeatureFlagsUpdate } from './feature-flags.js';
45
import { runAnalysisFeatureFlagsGet, runAnalysisFeatureFlagsUpdate } from './analysis-feature-flags.js';
@@ -40,6 +41,13 @@ export default function registerSettingsCommands(program, { runCmd }) {
4041
.command('settings')
4142
.description('Manage CodeAnt AI settings');
4243

44+
// ── repos ──────────────────────────────────────────────────────────────────
45+
settings
46+
.command('repos')
47+
.description('List repositories')
48+
.option('--org <org>', 'Organization name (auto-picked when only one is authenticated)')
49+
.action((opts) => runCmd(() => runRepos({ org: opts.org })));
50+
4351
// ── audit-logs settings ────────────────────────────────────────────────────
4452
settings
4553
.command('audit-logs')

‎src/commands/settings/repos.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Delegates to the scans implementation — same endpoint, no duplication needed.
2+
export { runRepos } from '../scans/repos.js';

0 commit comments

Comments
 (0)