0.2.0 • Published 4 months ago

@jil/cli v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@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

4 months ago

0.1.18

7 months ago

0.1.17

11 months ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.9

2 years ago

0.1.2

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.1

2 years ago