Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

807 B
Raw Blame
// Copyright 2026 Ix Infrastructure Inc.

import type { Command } from "commander";
import chalk from "chalk";
import { bootstrap } from "../bootstrap.js";

/** @deprecated Use `ix map .` — bootstrap is now automatic. */
export function registerInitCommand(program: Command): void {
  const cmd = program
    .command("init")
    .description("(deprecated) Initialize Ix — use ix map . instead")
    .action(async () => {
      try {
        await bootstrap();
        console.log(chalk.green("✓") + " Ix is ready. Run " + chalk.bold("ix map .") + " to get started.");
      } catch (err: any) {
        console.error(chalk.red("Error:"), err.message);
        process.exitCode = 1;
      }
    });

  // Hide from default help — no longer the recommended entrypoint
  (cmd as any).hidden = true;
}