GitWrap
GitWrap is a simple wrapper around git
command.
The purpose of this library is to provide a controlled and reliable method of accessing the git commands in the simplest possible way.
This project is in progress, not all git commands / options are implemented yet.
Credits
This project is inspired and based on Go Git Cmd Wrapper
License
The code is licensed under the permissive Apache v2.0 licence. This means you can do what you like with the software, as long as you include the required notices. Read this for a summary.
Install
cargo install gitwrap
Running the above command will globally install the gitwrap binary. Install as library
Run the following Cargo command in your project directory:
cargo add gitwrap
Or add the following line to your Cargo.toml:
gitwrap = "0.10.0"
Usage
Here are some examples of use (work in progress)
1. Cloning a remote repo
use clone;
Clone a repo using macros. Macros allow to specify all command options and execute it in a single step
For a fine-grained control over the options command functions must be used
Execute a series of git commands at once with a BatchCommand or using the batch! macro