UNPKG

ghinfo

Version:

CLI util for generating a GitHub project information file

15 lines (14 loc) 515 B
import Builder from '../../Builder.js'; const generate = async ({ dir, type }) => { const builder = new Builder(dir, type); await builder.generate(); }; export const command = { command: 'generate', describe: 'Generate .ghinfo file', builder: { dir: { string: true, alias: 'd', description: 'Directory with media files', default: 'media' }, type: { string: true, alias: 't', description: 'Repository content type', default: '' }, }, handler: (args) => generate(args), };