Console command manager
Store your commands in one place for automatic or manual launch and execution at any time.
commandman — CLI command manager. Store your commands in one place for automatic or manual launch and execution at any time.
It is convenient to store and run many commands for automatic execution after system installation. Recommended for use on *nix systems and Termux.
Dependencies: Uses commandex, smartcliapp, and click.
*.cfg and *.json*.cfg — Simple file with command packages:
[package name 1]
command 1
command 2
command N
[package name 2]
command 1
command 2
command N
*.json — Simple file with command packages:
{
"pack1":
[
"command1",
"command2"
],
"pack2":
[
"command1",
"command2"
]
}
Example file: example.cfg
Via PyPI:
pip install commandman
From source:
python setup.py install commandman -h
With requirements:
pip install -r requirements.txt python3 commandmanager.py [options] [path to the file]
# Install Termux apt update pkg install python # Go to project folder python setup.py install commandman -h # Or with requirements pip3 install -r requirements.txt python3 commandmanager.py [options] [path to the file]
Basic usage:
commandman [options] [path to the file with command packages]
Run specific packages (-a):
commandman -a name1 -a name2 -a name3 file.cfg
Exclude packages (-e):
commandman -e name1 -e name2 -e name3 file.cfg
Manual mode (--no-auto):
commandman --no-auto file.cfg
⚠️ If file or package name contains spaces, enclose it in quotation marks.
| Option | Description |
|---|---|
-a | Add package to run (can be used multiple times) |
-e | Exclude package from run (can be used multiple times) |
--auto | Autorun commands (default) |
--no-auto | Cancel autorun, ask permission for each package/command |
⚠️ If package name contains spaces, enclose it in quotation marks.
By using this software, you agree to the full disclaimer terms.
Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
License: BSD 3-Clause License