Skip to content

Commit 6660bc9

Browse files
committed
moar cleanup
1 parent d1fcc8a commit 6660bc9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/demo.citty.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const main = defineCommand({
2424
alias: 'l',
2525
},
2626
},
27-
run: () => {},
27+
run: (_ctx) => {},
2828
});
2929

3030
const devCommand = defineCommand({
@@ -76,9 +76,7 @@ main.subCommands = {
7676
lint: lintCommand,
7777
} as Record<string, CommandDef<ArgsDef>>;
7878

79-
// Use the config object approach for completions
8079
const completion = await tab(main, {
81-
// Root level options
8280
options: {
8381
config: {
8482
handler: () => [
@@ -101,7 +99,7 @@ const completion = await tab(main, {
10199
],
102100
},
103101
},
104-
// Subcommands and their options
102+
105103
subCommands: {
106104
lint: {
107105
handler: () => [
@@ -128,6 +126,7 @@ const completion = await tab(main, {
128126
},
129127
});
130128

131-
// Create the CLI and run it
129+
void completion;
130+
132131
const cli = createMain(main);
133132
cli();

0 commit comments

Comments
 (0)