Skip to content

Fixes #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 31, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
populate help docs
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed May 31, 2020
commit 9344d9d6808f1056312409090cea152aef89f902
5 changes: 2 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "./utils/logs";
import build from "./build";
import create from "./create";
import help from "./help";

export async function cli(rawArgs: string[]): Promise<void> {
const command: string = rawArgs[2];
Expand All @@ -24,8 +25,6 @@ export async function cli(rawArgs: string[]): Promise<void> {
case "--help":
case "-h":
default:
console.log(
"Docs can be found at github: https://github.com/coderoad/coderoad-cli/"
);
help();
}
}
13 changes: 13 additions & 0 deletions src/help.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default function help() {
console.log(`
Usage: coderoad [options]

Options:
help display these help docs
version show coderoad cli version
create start a new tutorial from a template
build generate a coderoad.json file from markdown and yaml

More docs at https://github.com/coderoad/coderoad-cli
`);
}