The application is written in Python 3 using urwid(https://urwid.org) and Sqlite3 as database.
Get the full code from github:
git clone https://github.com/bm-zi/urwid-python-cmdhdler.git
This is a simple terminal-based application to manage Linux commands, on any Linux host.
You can search, run, add, update, remove any Linux command from a sqlite database. The application also can handle uploading a file with the list of commands into the dabase, or download all commands from database, into the same file named as 'download'.
Installation of dependent packages is done by:
pip install urwid, pyperclip
Simply copy app.py into a directory(preferably, an empty one) and then let the application run by:
python3 app.py
If no database file provided, application will automatically creates a sample databse file with some elementary commands as demo. You can populate the initialized database by click on upload button while you provide a file named as 'download' with your list of commands in the same directory leval as file app.py.
Here's an image of the application main screen:
You can figure out more about the features included in this app, only by refereing to help on shortcut keys. Here is a snapshot of help:
|||||||||||||||||||| SHORTCUT KEYS |||||||||||||||||||||
tab ............. Goes to prompt. prompt is ": " and is
located at the bottom of command menu.
ctrl up ............ Goes to search field.
ctrl down .......... Goes to function window at the bottom.
f5 ................. Restarts the app.
f6 ................. Removes all temp files, used by app
f8 ................. Exits app. (or use Quit button)
ctrl e ............. Runs command and logs output.
ctrl x ............. Runs command in a separate terminal.
ctrl o ............. Open commands history.
Copy ............... Command is copied into clipboard
Update ............. Updates the command typed in prompt.
Add ................ Adds the command typed in prompt.
Remove ............. Removes selected command.
Doownload .......... Downloads all commands to file download.
Upload ............. Uploads file download into database.