Skip to content

Commit 9344d9d

Browse files
committed
populate help docs
Signed-off-by: shmck <[email protected]>
1 parent 56a3dcb commit 9344d9d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Diff for: src/cli.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import "./utils/logs";
22
import build from "./build";
33
import create from "./create";
4+
import help from "./help";
45

56
export 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
}

Diff for: src/help.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)