copykitku/src/index.ts

10 lines
210 B
TypeScript
Raw Permalink Normal View History

2021-02-01 11:44:18 +01:00
import { run } from '@oclif/command';
if (process.argv[1] === __filename) {
(run() as Promise<any>)
.then(require('@oclif/command/flush'))
.catch(require('@oclif/errors/handle'));
}
export { run };