cargo-commander 0.1.0

Like npm scripts, but better
cargo-commander-0.1.0 is not a library.

Cargo Commander

The simple way of running commands

Introduction

Cargo Commander serves to fill the gap in the cargo commands capabilities, namely not being able to run commands in a similar fashion that npm does with scripts.

Getting started

Either create your commands under a [commands] section in your Cargo.toml file, or create a new Commands.toml file which uses the exact same syntax as if it had been under the commands section.

# Install cargo-commander
cargo install cargo-commander
# Run your command
cargo cmd COMMAND

How to use

# Cargo.toml

[commands]

hello = "echo world"

multiple = ["echo first", "echo second"]

advanced = { cmd = "", shell = "python"}