Skip to content
/ cism Public

CISM (Customizable Interactive Script Manager)

License

Notifications You must be signed in to change notification settings

cronnosli/cism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CISM

CISM (Customizable Interactive Script Manager) is a simple tool for managing shell scripts for your project.

Requirements

Installation

  1. Clone or download this repository to your local machine.

  2. Navigate to the cloned directory using a terminal.

  3. Run the following command to install the required dependencies:

    mkdir build && cd build
    cmake ..
    make install

Configuration

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"
    }
}

Usage

Calling a script

To call a script, run the following command:

cism <script-name>

Calling script passing arguments:

cism <script-name> <arg1> <arg2> ...

Contributing

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.

License

CISM is licensed under the MIT license. See the LICENSE file for more information.