@@ -23,17 +23,17 @@ program
23
23
. parse ( process . argv ) ;
24
24
update_1 . default ( ) ;
25
25
if ( program . build ) {
26
- var tutorial = program . args [ 0 ] || 'tutorial/tutorial.md' ;
26
+ var tutorialPath = program . args [ 0 ] || 'tutorial/tutorial.md' ;
27
27
var output = 'coderoad.json' ;
28
- process . stdout . write ( chalk_1 . grey ( "building coderoad.json for " + tutorial + "..." ) ) ;
29
- if ( ! build_1 . default ( process . cwd ( ) , tutorial , output ) ) {
28
+ process . stdout . write ( chalk_1 . grey ( "building coderoad.json for " + tutorialPath + "..." ) ) ;
29
+ if ( ! build_1 . default ( { dir : process . cwd ( ) , filePath : tutorialPath , output : output } ) ) {
30
30
result_1 . fail ( ) ;
31
31
}
32
32
}
33
33
else if ( program . create ) {
34
34
var packageName = program . args [ 0 ] ;
35
35
process . stdout . write ( "Creating demo tutorial \"coderoad-" + packageName + "\"..." ) ;
36
- if ( ! create_1 . default ( process . cwd ( ) , packageName ) ) {
36
+ if ( ! create_1 . default ( { dir : process . cwd ( ) , name : packageName } ) ) {
37
37
result_1 . fail ( ) ;
38
38
}
39
39
}
@@ -43,7 +43,7 @@ else if (program.search) {
43
43
}
44
44
else if ( program . tutorials ) {
45
45
process . stdout . write ( "List of tutorial packages in this directory..." ) ;
46
- var tuts = tutorials_1 . default ( process . cwd ( ) ) ;
46
+ var tuts = tutorials_1 . default ( { dir : process . cwd ( ) } ) ;
47
47
if ( ! tuts ) {
48
48
result_1 . fail ( ) ;
49
49
}
@@ -61,7 +61,7 @@ else if (program.tutorials) {
61
61
}
62
62
else if ( program . publish ) {
63
63
var version = program . args [ 0 ] ;
64
- publish_1 . default ( version ) ;
64
+ publish_1 . default ( { version : version } ) ;
65
65
}
66
66
else if ( program . validate ) {
67
67
if ( ! validate_1 . default ( ) ) {