File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 118118 esac
119119done
120120
121- if [ $# = 1 ] && [ " $1 " != " version" ]; then
121+ if [ $# = 0 ] || [ $# = 1 ] && [ " $1 " != " version" ]; then
122122 # use the "guide" command if none was given
123123 EXTRAPREFIX=" guide"
124124fi
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- // import { Registrar } from '@kui-shell/core'
17+ import { Arguments , Registrar } from '@kui-shell/core'
18+
19+ function help ( ) {
20+ return 'Usage: codeflare [run] [<task>] [-s /path/to/store] [-u]'
21+ }
1822
1923/** Register Kui Commands */
20- export default function registerCodeflareCommands ( /* registrar: Registrar */ ) {
21- /* e.g. this command will executable as "run"
22- registrar.listen('/run', args => {
23- })
24- */
24+ export default function registerCodeflareCommands ( registrar : Registrar ) {
25+ registrar . listen ( '/help' , help )
2526}
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ function withFilepath(
2929 cb : ( filepath : string , tab : Tab ) => Promise < true | ReactResponse [ "react" ] >
3030) {
3131 return async ( { tab, argvNoOptions, parsedOptions } : Arguments < Options > ) => {
32+ if ( ! argvNoOptions [ 1 ] ) {
33+ argvNoOptions . push ( 'ml/codeflare' )
34+ }
35+
3236 if ( ! parsedOptions . u ) {
3337 // CLI path
3438 const { cli } = await import ( "madwizard/dist/fe/cli/index.js" )
You can’t perform that action at this time.
0 commit comments