UNPKG

yargs-file-commands

Version:

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

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