cog-rust
Simple, opiniated library for building Cog commands in rust.
Getting Started
These instructions will get you a copy of the project up and running for use in your own bundles.
Prerequisities
# Cargo.toml
[]
= "0.1"
Usage
Write your bundle:
// main.rs
extern crate cog;
// cog::Args is a Vec<String> and cog::Opts a HashMap<String,String>
Use the resulting executable in cog's config.yaml
:
commands:
hello:
executable: /usr/local/bin/my-bundle
documentation: hello [--name=<name>]
# ...
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us. So far this file does not exist, help welcome on how to handle this.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Paul d'Hubert - Initial work - pauldub
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- operable for bringing cog and the nice bundle system!