UNPKG

yargs-file-commands

Version:

A yargs helper function that lets you define your commands structure via directory and file naming conventions.

11 lines (10 loc) 286 B
export const describe = 'Database migration command'; export const builder = (yargs) => { return yargs.option('force', { type: 'boolean', describe: 'Force migration' }); }; export const handler = async (argv) => { console.log('Migration handler called'); };