I'd rather write programs to write programs than write programs.
我想写的不只是程序,而且是会写程序的程序。
✨ a guided and prescriptive CLI creator.
- 🚀 One-shot bootstrap
- ⚙ Support lifecycle mode
- 🙂 Guided and prescriptive
$ npm install -g cf
hooks list
- will-inject: before command module's injection
- will-parse: before cli-engine start
bootstrap.hooks.listen('will-inject', async (next) => {
try {
await sleep(3000)
} catch (error) {
console.log(error)
}
await next();
})