Crates.io | runner-cli |
lib.rs | runner-cli |
version | 0.1.9 |
source | src |
created_at | 2022-11-14 15:58:56.41086 |
updated_at | 2023-04-15 22:33:21.164497 |
description | A cli tool that let's you map commands to a shorter alias |
homepage | |
repository | https://github.com/pratushrai0309/runner |
max_upload_size | |
id | 715037 |
size | 3,857,230 |
A cli tool that let's you map commands to a shorter alias. Run the mapped command using the <ALIAS_NAME>.
runner <ALIAS_NAME>
You can map all your commands in runner.toml file
An example runner.toml file:
[Command]
alias = "ci"
program = "cargo"
args = ["install", "lsd"]
[Command]
alias = "nv"
program = "node"
args = ["-v"]
[Command]
alias = "cc"
program = "cargo"
args = ["check"]
cargo install runner-cli
runner --init
runner --config
runner --mapping
runner --add
)
runner --find <ALIAS_NAME>
runner --available <ALIAS_NAME>
-a, --add Map a new command to a alias right from terminal
--available Check if a alias is available to use
-c, --config Path of the the config file runner.toml
-f, --find Find a command mapped to the give alias
-h, --help Print help information
-i, --init Initialize a empty runner.toml file
-m, --mapping Show all the user defined mappings
-V, --version Print version information
[Command]
alias = "Shorter subcommand you want to use instead of the command"
program = "CLI Program Name(like: git, cat, batcat, code, neofetch, cargo, python, node, npm etc.)"
args = "Arguments you want to pass to the cli program"