commandman v1.0.0

Console command manager

Store your commands in one place for automatic or manual launch and execution at any time.

Python CLI Command Manager Cross-Platform PyPI Termux

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.

  • Storing named packages of commands — in one file
  • Launching a batch of commands — in automatic or manual mode
  • Add and run only certain packages — selective execution
  • Exclusion of command packages — from launch
  • Skip packages and commands — in manual mode
  • Two file formats*.cfg and *.json
  • Cross-platform — Windows, Linux, macOS, Termux

*.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.

OptionDescription
-aAdd package to run (can be used multiple times)
-eExclude package from run (can be used multiple times)
--autoAutorun commands (default)
--no-autoCancel 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