Skip to main content

Simple terminal helper program to save long terminal commands. See git: https://github.com/Zzanetiite/CommandSaver

Project description

CommandSaver

CommandSaver is a console-interface application that saves and executes terminal commands added by the user.

Summary

The purpose of the program is to help the user keep track of commonly used complicated commands. It is a lot like aliases.

Installation

Install the package in the user directory using:

pip install --user command-saver-terminal-program

Close the shell, start a new shell and use cs to run.

If command not found error happens

This error happens when the script path hasn't been added to the user's directory. Check whether the installation directory is included in the user's PATH. If not, modify your shell configuration file (e.g., ~/.bashrc or ~/.zshrc) to include it. For example, you can add the following line to your ~/.zshrc file:

export PATH=/local/home/username/.local/bin:$PATH

Running in the terminal

Use cs to launch the program from bash or zsh. Or run a single command using cs OPTION COMMAND_ID

Development

Project has been developed using PyCharm integrated development environment (IDE) and in accordance with the design of Software Engineering Fundamentals final assignment (University assignment).

Documentation

Read more about rich package here: https://rich.readthedocs.io/en/stable/tables.html

Read more about logger here: https://docs.python.org/3/library/logging.html

Read more about mock objects used for unit tests here: https://docs.python.org/3/library/unittest.mock.html?highlight=patch#module-unittest.mock

Additional details on the design and the project have been described in the Software Engineering Fundamentals final assignment.

Development

The code has a comment in almost every line, this was the coursework requirement.

Testing

Unit tests have been called them in the terminal using python. Tests have not been updated for CommandSaver versions >2.0 (outdated from 1.0 - didn't have time to do them).

Packaging & Deployment

Packaged using:

pip install setuptools wheel
python setup.py sdist bdist_wheel

Distributed via PyPI using twine:

pip install twine
twine upload dist/*

Locally tested using:

pip install --user dist/command-saver-terminal-program-2.2.2.tar.gz

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

command-saver-terminal-program-2.2.2.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file command-saver-terminal-program-2.2.2.tar.gz.

File metadata

File hashes

Hashes for command-saver-terminal-program-2.2.2.tar.gz
Algorithm Hash digest
SHA256 a11ee30905cfb375bbbacf7c426fde90c7b15b81e4ddf478353f7b07cbdef80d
MD5 bef9136e8c20995ff11e4427460e7fce
BLAKE2b-256 c464480efb35ea85b8b23abf95a528f5d6248f6e05258767e57af3b7453b6f95

See more details on using hashes here.

File details

Details for the file command_saver_terminal_program-2.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for command_saver_terminal_program-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a949912a2599fec1e2d5d5964cfd19f7e97a1f1c417000215e801515b81f9cc8
MD5 693ba3de8c3bbe39976acabbb477b117
BLAKE2b-256 81370bbc76f4a658d280c4d89662fb041c58e61ba4367c78bc863deadac14953

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page