0.9.7 • Published 7 months ago

@breadc/complete v0.9.7

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@breadc/complete

version CI

👷 Work in progress.

Installation

npm i @breadc/complete

Add this plugin to your CLI script.

import breadc from 'breadc'
import complete from '@breadc/complete'

const cli = breadc('echo', { version: '1.0.0', plugins: [complete()] })
  .option('--host <host>', { default: 'localhost' })
  .option('--port <port>', { default: '3000', cast: p => +p })

cli
  .command('[message]', 'Say something!')
  .action((message, option) => {
    const host = option.host
    const port = option.port
    console.log(`Host: ${host}`)
    console.log(`Port: ${port}`)
  })

cli.run(process.argv.slice(2)).catch(err => console.error(err))

License

MIT License © 2023 XLor

0.9.7

7 months ago

0.9.7-beta.0

9 months ago

0.9.6

11 months ago

0.9.4

1 year ago

0.9.5

1 year ago

0.9.3

1 year ago

0.9.1

1 year ago

0.8.9

1 year ago

0.8.8

1 year ago

0.8.7

1 year ago

0.9.0

1 year ago

0.8.6

1 year ago

0.8.5

1 year ago

0.8.4

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago