Crates.io | prkcst |
lib.rs | prkcst |
version | 0.4.2 |
source | src |
created_at | 2024-05-16 18:34:53.281938 |
updated_at | 2024-05-30 18:59:25.224314 |
description | Command Line Shortcut |
homepage | |
repository | https://github.com/prk-Jr/prkcst |
max_upload_size | |
id | 1242364 |
size | 19,618 |
Command Shortcut Tool is a command-line interface (CLI) tool written in Rust that allows users to define and execute custom commands easily.
```bash
cargo install prkcst
```
To add a new command, run the CLI tool with the --add
option:
./prkcst --add
Enter the alias for your command:
hello
Enter the commands associated with this alias (one command per line)\n Enter an empty line to finish
echo hello world
Similarly, you can also have arguments for commands as:
./prkcst --add
Enter the alias for your command:
hello_user
Enter the commands associated with this alias (one command per line)\n Enter an empty line to finish
echo hello {}
Follow the prompts to enter the alias and associated commands for the new command. Use "{}" as an argument placeholder.
To list all available commands, run the CLI tool with the --list
option:
./prkcst --list
To execute a predefined command, specify its alias along with any arguments:
./prkcst <alias> [args]
Replace <alias>
with the alias of the command and [args]
with any arguments required by the command.
This project is licensed under the MIT License.