1- export function help ( ) {
1+ export function main ( ) {
22 console . log ( `
3+ CodeRoad CLI
34Usage: coderoad [options]
45
56Options:
67--help (-h) display these help docs
78--version (-v) show coderoad cli version
89create start a new tutorial from a template
910build generate a coderoad.json file from markdown and yaml
11+ validate run a variety of tests to ensure a tutorial works as intended
1012
11- More docs at https://github.com/coderoad/coderoad-cli
12- ` ) ;
13+ More docs at https://github.com/coderoad/coderoad-cli` ) ;
1314}
1415
1516export function create ( ) {
16- console . log ( `
17+ console . log ( `Create a new CodeRoad tutorial project from a template.
18+
1719Usage: coderoad create [path] [options]
1820
1921Options:
2022--help (-h) display these help docs
2123--lang (-l) programming language for template
2224--testRunner (-t) test runner module for template
2325
24- More docs at https://github.com/coderoad/coderoad-cli
25- ` ) ;
26+ More docs at https://github.com/coderoad/coderoad-cli` ) ;
2627}
2728
2829export function build ( ) {
29- console . log ( `
30+ console . log ( `Compile a coderoad.json file from markdown & yaml.
31+
3032Usage: coderoad build [path] [options]
3133
3234Options:
@@ -35,6 +37,16 @@ Options:
3537--yaml (-y) custom path to the tutorial yaml file (coderoad.yaml)
3638--output (-o) custom path to tutorial json config file (coderoad.json)
3739
38- More docs at https://github.com/coderoad/coderoad-cli
39- ` ) ;
40+ More docs at https://github.com/coderoad/coderoad-cli` ) ;
41+ }
42+
43+ export function validate ( ) {
44+ console . log ( `Validates commits and tests across a tutorial.
45+
46+ Usage: coderoad validate [path] [options]
47+
48+ Options:
49+ --help (-h) display these help docs
50+
51+ More docs at https://github.com/coderoad/coderoad-cli` ) ;
4052}
0 commit comments