File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
plugins/plugin-codeflare/src/controller Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1616
1717import { doMadwizard } from "@kui-shell/plugin-madwizard"
1818
19+ /**
20+ * Our catch-all command handler: send to madwizard.
21+ */
1922export 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) {
5454 height : 600 ,
5555 } )
5656
57+ /**
58+ * Register a catch-all command handler: any `/^codeflare/` command
59+ * lines, send to madwizard.
60+ */
5761 registrar . catchall < KResponse , MadWizardOptions > (
58- ( argv : string [ ] ) => argv [ 1 ] === "codeflare" ,
62+ ( argv : string [ ] ) => argv [ 0 ] === "codeflare" ,
5963 ( args ) => import ( "./catchall" ) . then ( ( _ ) => _ . default ( args ) ) ,
60- 0
64+ 1
6165 )
6266}
You can’t perform that action at this time.
0 commit comments