File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 11import "./utils/logs" ;
22import build from "./build" ;
33import create from "./create" ;
4+ import help from "./help" ;
45
56export async function cli ( rawArgs : string [ ] ) : Promise < void > {
67 const command : string = rawArgs [ 2 ] ;
@@ -24,8 +25,6 @@ export async function cli(rawArgs: string[]): Promise<void> {
2425 case "--help" :
2526 case "-h" :
2627 default :
27- console . log (
28- "Docs can be found at github: https://github.com/coderoad/coderoad-cli/"
29- ) ;
28+ help ( ) ;
3029 }
3130}
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