File tree 2 files changed +9
-2
lines changed
plugins/plugin-codeflare/src/controller
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import { doMadwizard } from "@kui-shell/plugin-madwizard"
18
18
19
+ /**
20
+ * Our catch-all command handler: send to madwizard.
21
+ */
19
22
export default doMadwizard ( true , "guide" , true )
Original file line number Diff line number Diff line change @@ -54,9 +54,13 @@ export default function registerCodeflareCommands(registrar: Registrar) {
54
54
height : 600 ,
55
55
} )
56
56
57
+ /**
58
+ * Register a catch-all command handler: any `/^codeflare/` command
59
+ * lines, send to madwizard.
60
+ */
57
61
registrar . catchall < KResponse , MadWizardOptions > (
58
- ( argv : string [ ] ) => argv [ 1 ] === "codeflare" ,
62
+ ( argv : string [ ] ) => argv [ 0 ] === "codeflare" ,
59
63
( args ) => import ( "./catchall" ) . then ( ( _ ) => _ . default ( args ) ) ,
60
- 0
64
+ 1
61
65
)
62
66
}
You can’t perform that action at this time.
0 commit comments