import { applyHelpConfiguration } from '../app/help-config.js';
import { createBacklogCommand } from './backlog/index.js';
import { createCleanupCommand } from './cleanup/index.js';
import { createConfigCommand } from './config/index.js';
import { createDecisionCommand } from './decision/index.js';
import { createDocsCommand } from './docs/index.js';
import { createDoctorCommand } from './doctor/index.js';
import { createGateCommand } from './gate/index.js';
import { createIndexCommand } from './index-cmd/index.js';
import { createInitCommand } from './init/index.js';
import { createInstructionsCommand } from './instructions/index.js';
import { createInternalCommand } from './internal/index.js';
import { createLocalCommand } from './local/index.js';
import { createPjmCommand } from './pjm/index.js';
import { createProjectCommand } from './project/index.js';
import { createProvidersCommand } from './providers/index.js';
import { createRemoveCommand } from './remove/index.js';
import { createRepoCommand } from './repo/index.js';
import { createReviewCommand } from './review/index.js';
import { createStateCommand } from './state/index.js';
import { createStatusCommand } from './status/index.js';
import { createSyncCommand } from './sync/index.js';
import { createToolsCommand } from './tools/index.js';
export function registerCommands(program) {
    program.addCommand(createBacklogCommand());
    program.addCommand(createDecisionCommand());
    program.addCommand(createInitCommand());
    program.addCommand(createStatusCommand());
    program.addCommand(createSyncCommand());
    program.addCommand(createConfigCommand());
    program.addCommand(createGateCommand());
    program.addCommand(createLocalCommand());
    program.addCommand(createProvidersCommand());
    program.addCommand(createRemoveCommand());
    program.addCommand(createRepoCommand());
    program.addCommand(createReviewCommand());
    program.addCommand(createDoctorCommand());
    program.addCommand(createCleanupCommand());
    program.addCommand(createDocsCommand());
    program.addCommand(createInstructionsCommand());
    program.addCommand(createIndexCommand());
    program.addCommand(createPjmCommand());
    program.addCommand(createProjectCommand());
    program.addCommand(createStateCommand());
    program.addCommand(createToolsCommand());
    program.addCommand(createInternalCommand());
    // Commander's .addCommand() does not inherit help config from the parent.
    // Apply showGlobalOptions recursively after all commands are registered.
    applyHelpConfiguration(program);
}
