A shell script framework. This framework exists to help make it easier to create shell script packages with reusable code and modules that are curated and safe. These reusable modules will be installed into a shared location per project similar to how virtualenv works for Python.
For now this only supports Bash.
To use crucible get the latest stable version and put the crucible
file in you local path, e.g. ~/.local/bin
.
The init will turn the directory where it is run into a crucible project. It will create a shared directory in which the modules will be put and some metadata.
The update command will update the project with a new version of crucible
The purge command will delete the project and associated crucible assets
The pour command will get the associated crucible assets and pour it into a distributable .tar.gz
file
To make local development easier there exist some docker images to help out.
By running the following command the shellcheck
will be performed on all scripts to make sure no violations have occurred.
docker-compose up shellcheck
By running the following command you get a nice clean environment in which crucible
commands can be run without polluting your own host.
docker-compose run --rm crucible
- Fish
- csh
- ksh
- zsh
- Dates
- Logging
- Arrays
- Maps
- Strings
- Pipes
- Redirect
- Search
- Cryptography
- Binary I/O
- File I/O
- Network I/O
- Processes
- Classes
- Http
- DNS
- File Cache
- Memory Cache
The tool ShellCheck has been used to perform static code analysis on all scripts.