cchain 0.1.1

A command line chain execution tool
cchain-0.1.1 is not a library.
Visit the last successful build: cchain-0.3.42

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:

git clone https://github.com/yourusername/cchain.git
cd cchain
cargo build --release

Usage

Create a JSON configuration file with the commands you want to execute. Example configuration:

[
    {
        "command": "echo",
        "arguments": ["Hello, world!"],
        "retry": 3
    },
    {
        "command": "ls",
        "arguments": ["-la"],
        "retry": 1
    }
]

Run cchain with the path to your configuration file:

./cchain -c path/to/configurations.json

License

This project is licensed under the MIT License.