···44import * as powershell from './powershell';
55import type { CAC } from 'cac';
66import { assertDoubleDashes } from './shared';
77-import { CompletionConfig } from './shared';
88-import t, { RootCommand } from './t';
77+import type { CompletionConfig } from './shared';
88+import t, { type RootCommand } from './t';
991010const execPath = process.execPath;
1111const processArgs = process.argv.slice(1);
+5-3
src/citty.ts
···11-import { ArgDef, defineCommand } from 'citty';
11+import { defineCommand } from 'citty';
22+import type { ArgDef } from 'citty';
23import * as zsh from './zsh';
34import * as bash from './bash';
45import * as fish from './fish';
···1011 SubCommandsDef,
1112} from 'citty';
1213import { generateFigSpec } from './fig';
1313-import { CompletionConfig, assertDoubleDashes } from './shared';
1414-import t, { RootCommand } from './t';
1414+import { assertDoubleDashes } from './shared';
1515+import type { CompletionConfig } from './shared';
1616+import t, { type RootCommand } from './t';
15171618function quoteIfNeeded(path: string) {
1719 return path.includes(' ') ? `'${path}'` : path;
+5-11
src/commander.ts
···33import * as fish from './fish';
44import * as powershell from './powershell';
55import type { Command as CommanderCommand, ParseOptions } from 'commander';
66-import t, { RootCommand } from './t';
66+import t, { type RootCommand } from './t';
77import { assertDoubleDashes } from './shared';
8899const execPath = process.execPath;
···2222 const programName = instance.name();
23232424 // Process the root command
2525- processRootCommand(instance, programName);
2525+ processRootCommand(instance);
26262727 // Process all subcommands
2828- processSubcommands(instance, programName);
2828+ processSubcommands(instance);
29293030 // Add the complete command for normal shell script generation
3131 instance
···101101 return t;
102102}
103103104104-function processRootCommand(
105105- command: CommanderCommand,
106106- programName: string
107107-): void {
104104+function processRootCommand(command: CommanderCommand): void {
108105 // Add root command options to the root t instance
109106 for (const option of command.options) {
110107 // Extract short flag from the name if it exists (e.g., "-c, --config" -> "c")
···122119 }
123120}
124121125125-function processSubcommands(
126126- rootCommand: CommanderCommand,
127127- programName: string
128128-): void {
122122+function processSubcommands(rootCommand: CommanderCommand): void {
129123 // Build a map of command paths
130124 const commandMap = new Map<string, CommanderCommand>();
131125