File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const main = defineCommand({
2424 alias : 'l' ,
2525 } ,
2626 } ,
27- run : ( ) => { } ,
27+ run : ( _ctx ) => { } ,
2828} ) ;
2929
3030const 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
8079const 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+
132131const cli = createMain ( main ) ;
133132cli ( ) ;
You can’t perform that action at this time.
0 commit comments