5.0.1 • Published 9 months ago

@julienvanbeveren/kit v5.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months 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

9 months ago

5.0.0

10 months ago

4.0.0

10 months ago

3.0.0

11 months ago

2.1.5

11 months ago

2.1.4

11 months ago

2.1.3

11 months ago

2.1.2

11 months ago

2.1.1

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.0.0

11 months ago