Skip to content

Commit 6620492

Browse files
committed
API -> OAI
1 parent 2d5282d commit 6620492

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ exports.api = function(args, opts) {
3030
info.token = login.token;
3131
} catch(e) {
3232
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);
3434
return process.exit();
3535
}
3636
}
37-
37+
3838
if(actionObj.swagger) {
3939
utils.findSwagger(function(err, swagger, file) {
4040
if(err) {
@@ -109,7 +109,7 @@ exports.load = function(action) {
109109
}
110110

111111
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');
113113
process.exit();
114114
};
115115

lib/help.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ var _ = require('lodash');
55
exports.swagger = false;
66
exports.login = false;
77
exports.category = "basic";
8-
exports.desc = "Learn what you can do with api";
8+
exports.desc = "Learn what you can do with oai";
99

1010
exports.run = function(config, info) {
1111
console.log("");
12-
console.log("Usage: api <command> [swagger url]");
12+
console.log("Usage: oai <command> [swagger url]");
1313
var files = glob.sync(path.join(__dirname, "*"));
1414

1515
var categories = {
@@ -33,7 +33,7 @@ exports.run = function(config, info) {
3333
var info = f.desc || "";
3434

3535
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);
3737
}
3838
});
3939

@@ -44,10 +44,10 @@ exports.run = function(config, info) {
4444
console.log(command);
4545
});
4646
});
47-
47+
4848
console.log("");
4949
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.");
5151
console.log("");
5252

5353
process.exit();

lib/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ exports.run = function(config, info) {
142142
console.log('');
143143
console.log('For more information on this syntax, see https://github.com/readmeio/swagger-inline');
144144
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 + '.');
146146
console.log('');
147147
console.log('');
148148

utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ exports.findSwagger = function(cb, opts) {
3232

3333
if(!generatedSwagger['x-si-base']) {
3434
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.");
3636
process.exit();
3737
}
3838

0 commit comments

Comments
 (0)