Skip to content

talentlessguy/clif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clif

⚠️ heavy work in progress

middleware-based CLI framework.

Install

pnpm i clif

Example

import { Clif } from 'clif'

const cli = new Clif({ name: 'bakery' })

cli
  .command('cook [bun]')
  .option({ flavor: { type: 'string', required: true }})
  .action(([bun], { flavor }) => console.log(`Cooking ${bun} with ${flavor}...`))
  .help()

cli.parse()

Features

  • 🌯 Supports sub-commands (e.g. my-cli project create)
  • 🤖 Automatic help/version commands
  • Supports boolean, string and number arguments

About

smol CLI framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published