qddegtya / cf

✨ A guided and prescriptive CLI creator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


cf


I'd rather write programs to write programs than write programs.

我想写的不只是程序,而且是会写程序的程序。


About

✨ a guided and prescriptive CLI creator.

Feature

  • 🚀 One-shot bootstrap
  • ⚙ Support lifecycle mode
  • 🙂 Guided and prescriptive

Quick Start

$ npm install -g cf

Advanced Usage

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();
})

About

✨ A guided and prescriptive CLI creator

License:MIT License


Languages

Language:JavaScript 96.1%Language:Smarty 3.9%