File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ exports.api = function(args, opts) {
30
30
info . token = login . token ;
31
31
} catch ( e ) {
32
32
console . log ( 'You need to log in to do this!' . red ) ;
33
- console . log ( 'Run ' + 'api login' . yellow ) ;
33
+ console . log ( 'Run ' + 'oai login' . yellow ) ;
34
34
return process . exit ( ) ;
35
35
}
36
36
}
37
-
37
+
38
38
if ( actionObj . swagger ) {
39
39
utils . findSwagger ( function ( err , swagger , file ) {
40
40
if ( err ) {
@@ -109,7 +109,7 @@ exports.load = function(action) {
109
109
}
110
110
111
111
console . log ( 'Action not found.' . red ) ;
112
- console . log ( 'Type ' + 'api help' . yellow + ' to see all commands' ) ;
112
+ console . log ( 'Type ' + 'oai help' . yellow + ' to see all commands' ) ;
113
113
process . exit ( ) ;
114
114
} ;
115
115
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ var _ = require('lodash');
5
5
exports . swagger = false ;
6
6
exports . login = false ;
7
7
exports . category = "basic" ;
8
- exports . desc = "Learn what you can do with api " ;
8
+ exports . desc = "Learn what you can do with oai " ;
9
9
10
10
exports . run = function ( config , info ) {
11
11
console . log ( "" ) ;
12
- console . log ( "Usage: api <command> [swagger url]" ) ;
12
+ console . log ( "Usage: oai <command> [swagger url]" ) ;
13
13
var files = glob . sync ( path . join ( __dirname , "*" ) ) ;
14
14
15
15
var categories = {
@@ -33,7 +33,7 @@ exports.run = function(config, info) {
33
33
var info = f . desc || "" ;
34
34
35
35
if ( f . category ) {
36
- categories [ f . category ] . commands . push ( " $" . grey + pad ( " api " + action ) + " " + info . grey ) ;
36
+ categories [ f . category ] . commands . push ( " $" . grey + pad ( " oai " + action ) + " " + info . grey ) ;
37
37
}
38
38
} ) ;
39
39
@@ -44,10 +44,10 @@ exports.run = function(config, info) {
44
44
console . log ( command ) ;
45
45
} ) ;
46
46
} ) ;
47
-
47
+
48
48
console . log ( "" ) ;
49
49
console . log ( "Just getting started?" . green ) ;
50
- console . log ( "Run " + "api init" . yellow + " to create your Swagger file." ) ;
50
+ console . log ( "Run " + "oai init" . yellow + " to create your Swagger file." ) ;
51
51
console . log ( "" ) ;
52
52
53
53
process . exit ( ) ;
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ exports.run = function(config, info) {
142
142
console . log ( '' ) ;
143
143
console . log ( 'For more information on this syntax, see https://github.com/readmeio/swagger-inline' ) ;
144
144
console . log ( '' ) ;
145
- console . log ( 'To see what you can do with your API, type ' + 'api help' . yellow + '.' ) ;
145
+ console . log ( 'To see what you can do with your API, type ' + 'oai help' . yellow + '.' ) ;
146
146
console . log ( '' ) ;
147
147
console . log ( '' ) ;
148
148
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ exports.findSwagger = function(cb, opts) {
32
32
33
33
if ( ! generatedSwagger [ 'x-si-base' ] ) {
34
34
console . log ( "We couldn't find a Swagger file." . red ) ;
35
- console . log ( "Run " + "api init" . yellow + " to get started." ) ;
35
+ console . log ( "Run " + "oai init" . yellow + " to get started." ) ;
36
36
process . exit ( ) ;
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments