google-oauth-cli-generator
Version:
CLI tool to quickly set up Google OAuth authentication for hackathons and projects
30 lines • 1.13 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const chalk_1 = __importDefault(require("chalk"));
const setup_1 = require("./commands/setup");
const program = new commander_1.Command();
program
.name('google-oauth-setup')
.description('CLI tool to quickly set up Google OAuth authentication')
.version('1.0.0');
program
.command('setup')
.description('Set up Google OAuth authentication for your project')
.action(setup_1.setupAuth);
program
.command('init')
.description('Initialize Google OAuth authentication (alias for setup)')
.action(setup_1.setupAuth);
// Default command
if (process.argv.length <= 2) {
console.log(chalk_1.default.cyan('🚀 Welcome to Google OAuth Setup CLI'));
console.log(chalk_1.default.gray('Run "google-oauth-setup setup" to get started'));
program.help();
}
program.parse(process.argv);
//# sourceMappingURL=index.js.map