Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9344d9d

Browse files
committed
populate help docs
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent56a3dcb commit9344d9d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

‎src/cli.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import"./utils/logs";
22
importbuildfrom"./build";
33
importcreatefrom"./create";
4+
importhelpfrom"./help";
45

56
exportasyncfunctioncli(rawArgs:string[]):Promise<void>{
67
constcommand: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
}

‎src/help.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
exportdefaultfunctionhelp(){
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)

[8]ページ先頭

©2009-2025 Movatter.jp