cchain
Overview
cchain is a command line tool designed to execute a series of commands based on a configuration file. It supports retrying commands if they fail, with a specified number of attempts.
Features
- Execute commands with specified arguments.
- Retry commands on failure with configurable retry limits.
- Simple configuration using JSON files.
- Logging of command execution and retries.
Installation
To install cchain, clone the repository and build it using Cargo:
Usage
Create a JSON configuration file with the commands you want to execute. Example configuration:
Additionally, if you do not specify a configuration file, cchain will list all available configuration files in the current working directory that start with cchain_ and have a .json extension. You can then select the desired configuration file by entering the corresponding number.
Example:
This will prompt you to select from the available configuration files in the current directory.
Run cchain with the path to your configuration file:
To generate a template configuration file, use the --generate flag:
License
This project is licensed under the MIT License.