A simple tool that manages command-line tools and executes commands all in one place.
- Create a directory to store your command-line tools and place them accordingly.
- This software is not distributed as binary files. Please build it if you wish to use it.
Execute the following in an environment where Rust is installed:
cargo build --release
Place the built executable in your directory. The executable will be generated at the following path:
./target/release/consowrap
Grant execution permissions to the placed file:
chmod +x consowrap
In the .env
file, specify the directory path where you want to manage your command-line tools. The format is as follows:
# Format of notation
COMMAND_DRECTORY_PATH="your_commands_directory_path";
# Example
COMMAND_DRECTORY_PATH="./Commands";
If a .env
file does not exist, one will be automatically created. Include the directory path for your command-line tools in the created .env
file.
Use the following command to display a list of available commands (files in the directory specified in .env
):
./consowrap -l
# Or
./consowrap --list
Note that this will display only the files within the directory specified in .env
, including non-command-line tools.
Execute commands in the following format:
./consowrap command arg1 arg2
# If adding options
./consowrap command -option arg1 arg2
If you need assistance, call up help:
./consowrap -h
# Or
./consowrap --help