File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
import "./utils/logs" ;
2
2
import build from "./build" ;
3
3
import create from "./create" ;
4
+ import help from "./help" ;
4
5
5
6
export async function cli ( rawArgs : string [ ] ) : Promise < void > {
6
7
const command : string = rawArgs [ 2 ] ;
@@ -24,8 +25,6 @@ export async function cli(rawArgs: string[]): Promise<void> {
24
25
case "--help" :
25
26
case "-h" :
26
27
default :
27
- console . log (
28
- "Docs can be found at github: https://github.com/coderoad/coderoad-cli/"
29
- ) ;
28
+ help ( ) ;
30
29
}
31
30
}
Original file line number Diff line number Diff line change
1
+ export default function help ( ) {
2
+ console . log ( `
3
+ Usage: coderoad [options]
4
+
5
+ Options:
6
+ help display these help docs
7
+ version show coderoad cli version
8
+ create start a new tutorial from a template
9
+ build generate a coderoad.json file from markdown and yaml
10
+
11
+ More docs at https://github.com/coderoad/coderoad-cli
12
+ ` ) ;
13
+ }
You can’t perform that action at this time.
0 commit comments