19 lines
450 B
JavaScript
Executable File
19 lines
450 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import { hideBin } from 'yargs/helpers';
|
|
import yargs from 'yargs';
|
|
import { join } from 'path';
|
|
|
|
import print from './command/print.js'
|
|
import init from './command/init.js'
|
|
|
|
yargs(hideBin(process.argv))
|
|
.default('source', join( process.cwd(), 'CHANGELOG.yml' ))
|
|
.describe('source', 'changelog source')
|
|
.command({
|
|
...print,
|
|
command: '$0',
|
|
})
|
|
.command(init)
|
|
.command(print).help().parse();
|