5.0.1 • Published 1 year ago

@julienvanbeveren/kit v5.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@julienvanbeveren/kit

A customizable CLI toolkit that allows you to create and manage your own command-line tools.

Installation

You can install the toolkit globally:

npm install -g @julienvanbeveren/kit

Or run it directly with npx:

npx @julienvanbeveren/kit <command>

Usage

Once installed, you can run any available command using:

kit <command> [arguments]

For example:

kit hello
kit hello "John"

Creating New Commands

To create a new command:

  1. Create a new directory in the scripts folder with your command name
  2. Add a manifest.json file with the command configuration:
{
  "command": "your-command",
  "description": "Description of what your command does",
  "arguments": [
    {
      "name": "arg-name",
      "description": "Description of the argument",
      "required": true|false
    }
  ],
  "dependencies": [
    "list of required tools"
  ]
}
  1. Create a script.ts file with your command implementation:
export default function yourCommand(arg1: string, arg2: string) {
  // Your command logic here
}

Development

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. For development with hot-reload:
npm run dev

License

MIT

5.0.1

1 year ago

5.0.0

1 year ago

4.0.0

1 year ago

3.0.0

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago