File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,12 @@ var templates = {
14
14
15
15
var title = 'Untitled Project' ,
16
16
description = '' ,
17
- layout = 'bootstrap' ;
17
+ layout = 'bootstrap' ,
18
+ filename = '' ;
18
19
19
20
var args = process . argv . slice ( 2 ) ,
20
21
value ;
21
22
22
- var filename = '' ;
23
-
24
23
while ( args . length ) {
25
24
26
25
value = args . shift ( ) ;
@@ -60,8 +59,8 @@ while (args.length) {
60
59
process . stdout . write ( ' -l, --layout\t\tTemplate to render the documentation with.' + '\n' ) ;
61
60
process . stdout . write ( '\n' ) ;
62
61
process . stdout . write ( ' Available Layouts:' + '\n\n' ) ;
63
- process . stdout . write ( ' - Bootstrap 3 (http://getbootstrap.com/)' + '\n' ) ;
64
- process . stdout . write ( ' - Markdown (http://daringfireball.net/projects/markdown/)' + '\n' ) ;
62
+ process . stdout . write ( ' - Bootstrap 3\t\t (http://getbootstrap.com/)' + '\n' ) ;
63
+ process . stdout . write ( ' - Markdown\t\t (http://daringfireball.net/projects/markdown/)' + '\n' ) ;
65
64
process . stdout . write ( '\n' ) ;
66
65
process . kill ( ) ;
67
66
break ;
@@ -92,13 +91,13 @@ fs.exists(filename, function (exists) {
92
91
93
92
} else {
94
93
95
- console . log ( 'Invalid layout specified.' ) ;
94
+ process . stdout . write ( 'Invalid layout specified.' + '\n ') ;
96
95
97
96
}
98
97
99
98
} else {
100
99
101
- console . log ( 'File not found.' ) ;
100
+ process . stdout . write ( 'File not found.' + '\n ') ;
102
101
103
102
}
104
103
Original file line number Diff line number Diff line change 1
- exports . parseData = function ( data ) {
1
+ module . exports . parseData = function ( data ) {
2
2
3
3
data . forEach ( function ( methods ) {
4
4
You can’t perform that action at this time.
0 commit comments