1.0.2 • Published 12 months ago

cat-anycli v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

anycli

anycli is a versatile Node.js package that allows you to quickly create command-line interfaces (CLIs) using a simple YAML configuration. It provides a straightforward way to define commands, options, and arguments for your CLI tool, making it easy to build custom command-line applications.

Installation

You can install cat-anycli using npm:

npm install -g cat-anycli

Usage

To create a CLI using anycli, you need to define a YAML configuration file. Let's say you have a file named ./anycli.yaml with the following content:

- name: run
  type: list
  message: run command
  choices:
    - name: show list
      short: "run ls -l"
      value: ["ls"]
    - name: run git 
      short: "run git status"
      value: ["git", "status"]

Then run it with

anycli ./anycli.yaml

or

anycli

demo

Enjoy!

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago