CISM (Customizable Interactive Script Manager) is a simple tool for managing shell scripts for your project.
- A C++20 compiler
- Nlohmann's JSON library
- CPack
- LCOV
-
Clone or download this repository to your local machine.
-
Navigate to the cloned directory using a terminal.
-
Run the following command to install the required dependencies:
mkdir build && cd build cmake .. make install
Create a file named .cism.json
in the root directory of your project. The file should contain the following JSON
{
...
"path": "src/scripts",
"scripts": {...}
...
}
Cism allows you to setup scripts adapting to your needs:
{
"path": "src/scripts",
"scripts": {
"script-in-src/scripts": "script-name.sh",
"relative-path": "path/to/script-name.sh",
"absolute-path": "/path/to/script-name.sh",
"script-with-args": "script-name.sh arg1 arg2 arg3",
"system-command": "ls -l",
"system-command:absolute-path": "/bin/ls -l"
}
}
To call a script, run the following command:
cism <script-name>
Calling script passing arguments:
cism <script-name> <arg1> <arg2> ...
Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or create a pull request.
CISM is licensed under the MIT license. See the LICENSE
file for more information.