@@ -23,17 +23,17 @@ program
2323 . parse ( process . argv ) ;
2424update_1 . default ( ) ;
2525if ( program . build ) {
26- var tutorial = program . args [ 0 ] || 'tutorial/tutorial.md' ;
26+ var tutorialPath = program . args [ 0 ] || 'tutorial/tutorial.md' ;
2727 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 } ) ) {
3030 result_1 . fail ( ) ;
3131 }
3232}
3333else if ( program . create ) {
3434 var packageName = program . args [ 0 ] ;
3535 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 } ) ) {
3737 result_1 . fail ( ) ;
3838 }
3939}
@@ -43,7 +43,7 @@ else if (program.search) {
4343}
4444else if ( program . tutorials ) {
4545 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 ( ) } ) ;
4747 if ( ! tuts ) {
4848 result_1 . fail ( ) ;
4949 }
@@ -61,7 +61,7 @@ else if (program.tutorials) {
6161}
6262else if ( program . publish ) {
6363 var version = program . args [ 0 ] ;
64- publish_1 . default ( version ) ;
64+ publish_1 . default ( { version : version } ) ;
6565}
6666else if ( program . validate ) {
6767 if ( ! validate_1 . default ( ) ) {
0 commit comments