mirror of
https://github.com/appium/appium.git
synced 2026-02-11 04:20:00 -06:00
24 lines
420 B
JavaScript
Executable File
24 lines
420 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
"use strict";
|
|
|
|
var authorize = require('../grunt-helpers.js').authorize;
|
|
|
|
var gruntMock = {
|
|
fatal: function (msg) {
|
|
console.error(msg);
|
|
process.exit(0);
|
|
},
|
|
log: {
|
|
writeln: function (msg) {
|
|
console.log(msg);
|
|
}
|
|
}
|
|
};
|
|
|
|
if (require.main === module) {
|
|
authorize(gruntMock, false, function (err) {
|
|
if (err) throw err;
|
|
console.log("Authorization successful");
|
|
});
|
|
}
|