1.1.0 • Published 9 months ago

cli-specs v1.1.0

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

cli-specs

cli-specs is a utility for defining CLI executables that should be called from JavaScript.

Usage

Install cli-specs using your favorite package manager:

npm install cli-specs

Then, import and use cli-specs in your project like in the following example:

import { defineCliExecutable } from 'cli-specs'
import { outdent } from 'outdent'

const git = defineCliExecutable({
  executableName: 'git',
  executablePath: '/usr/bin/git',
  description: outdent`
    \`git\` is the version control system that is needed
    for development.
  `,
  defaultExecaOptions: {
    stdout: 'inherit',
    stderr: 'inherit'
  }
})

await git(['add', '.'])
1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.3.0

10 months ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago