0.2.0 • Published 1 year ago
@jil/cli v0.2.0
@jil/cli
An interactive command line program builder, powered by React and Ink.
import {Program} from '@jil/cli';
import BuildCommand from './commands/Build';
import CleanCommand from './commands/Clean';
const program = new Program({
bin: 'jil',
name: 'Jil',
version: '1.2.3',
});
program.register(new BuildCommand());
program.register(new CleanCommand());
await program.runAndExit(process.argv);
Features
- Supports common argument features like commands, options, flags, parameters, and more.
- Export a stand-alone or command-based CLI program binary.
- Write declarative commands with decorators, or imperative commands with static properties.
- Write shorthand proxy commands for small one offs.
- Renders interface using React and Ink at 16 FPS, or output simple strings.
- Outputs beautiful help, usage, error, and index menus.
- Buffers console logs to avoid render tearing.
- Apply middleware to the argv list, or to the parsed arguments.
- Customize output colors using Jil-based terminal themes.
Installation
npm i @jil/cli react
Documentation
0.2.0
1 year ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.14
2 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.9
3 years ago
0.1.2
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.1
3 years ago