spaps
Version:
Sweet Potato Authentication & Payment Service CLI - Zero-config local development with built-in admin middleware and permission utilities
31 lines (23 loc) • 793 B
JavaScript
/**
* SPAPS CLI - Sweet Potato Authentication & Payment Service
*/
const chalk = require('chalk');
const fs = require('fs');
const { buildProgram } = require('../src/cli-dispatcher');
const { createHandlers } = require('../src/handlers');
const version = require('../package.json').version;
// ASCII Art Logo
const logo = `
${chalk.yellow('🍠 SPAPS')} - Sweet Potato Authentication & Payment Service
`;
const handlers = createHandlers(version, logo);
const program = buildProgram({ handlers, dryRun: false, version, logo });
// Show help if no command provided
if (!process.argv.slice(2).length) {
console.log(logo);
program.outputHelp();
console.log();
console.log(chalk.yellow('💡 Try: npx spaps help --interactive'));
}
program.parse(process.argv);