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 118
118
esac
119
119
done
120
120
121
- if [ $# = 1 ] && [ " $1 " != " version" ]; then
121
+ if [ $# = 0 ] || [ $# = 1 ] && [ " $1 " != " version" ]; then
122
122
# use the "guide" command if none was given
123
123
EXTRAPREFIX=" guide"
124
124
fi
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
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
+ }
18
22
19
23
/** 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 )
25
26
}
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ function withFilepath(
29
29
cb : ( filepath : string , tab : Tab ) => Promise < true | ReactResponse [ "react" ] >
30
30
) {
31
31
return async ( { tab, argvNoOptions, parsedOptions } : Arguments < Options > ) => {
32
+ if ( ! argvNoOptions [ 1 ] ) {
33
+ argvNoOptions . push ( 'ml/codeflare' )
34
+ }
35
+
32
36
if ( ! parsedOptions . u ) {
33
37
// CLI path
34
38
const { cli } = await import ( "madwizard/dist/fe/cli/index.js" )
You can’t perform that action at this time.
0 commit comments