UNPKG

no-migration

Version:

CLI tool to manage migration changes and user changes separately for React Native miniapp projects

37 lines 1.41 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const commit_1 = require("./commands/commit"); const migration_1 = require("./commands/migration"); const update_1 = require("./commands/update"); const packageJson = require('../package.json'); const program = new commander_1.Command(); program .name('nono-migration') .description('CLI tool to manage migration changes and user changes separately') .version(packageJson.version, '-v, --version', 'Output the current version'); program .command('commit') .description('Commit user changes while keeping migration changes unstaged') .option('-m, --message <message>', 'Commit message') .option('--amend', 'Amend the previous commit') .option('--no-edit', 'Use the previous commit message without editing') .action(commit_1.commitCommand); program .command('start') .alias('migration') .alias('m') .description('Run migration and setup tracking files') .action(migration_1.migrationCommand); program .command('update') .alias('u') .description('Update momo-migration and momo-cli to latest versions') .action(update_1.updateCommand); program.parse(process.argv); // Show help if no command provided if (!process.argv.slice(2).length) { program.outputHelp(); } //# sourceMappingURL=cli.js.map