Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/packsaddle/rust-gitconfig2json_cli
Parse `git config --list --null` for cli
https://github.com/packsaddle/rust-gitconfig2json_cli
Last synced: 2 days ago
JSON representation
Parse `git config --list --null` for cli
- Host: GitHub
- URL: https://github.com/packsaddle/rust-gitconfig2json_cli
- Owner: packsaddle
- License: apache-2.0
- Created: 2017-11-07T07:51:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-18T18:28:05.000Z (about 7 years ago)
- Last Synced: 2024-12-06T07:17:12.300Z (20 days ago)
- Language: Shell
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license-apache
Awesome Lists containing this project
README
# gitconfig2json_cli
[![crates version][crates-image]][crates-url] [![Travis-CI Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] ![license][license-image]
> Parse `git config --list --null` for cli
See [gitconfig2json](https://github.com/packsaddle/rust-gitconfig2json) for the programmatic API.
## Example
```
$ git config --list --null | gitconfig2json | jq
{
"branch": {
"chore/foo=bar.baz": {
"merge": "refs/heads/master",
"remote": "upstream"
},
"master": {
"merge": "refs/heads/master",
"remote": "upstream"
}
},
"color": {
"ui": "auto"
},
"core": {
"bare": "false",
"editor": "vim",
"excludesfile": "~/data/src/github.com/sanemat/dotfiles2016/gitignore-system",
"filemode": "false",
"logallrefupdates": "true",
"repositoryformatversion": "0"
},
"remote": {
"upstream": {
"fetch": "+refs/heads/*:refs/remotes/upstream/*",
"url": "[email protected]:packsaddle/rust-gitconfig2json_cli.git"
}
},
"url": {
"[email protected]:": {
"pushinsteadof": "https://gist.github.com//"
},
"[email protected]:": {
"pushinsteadof": "https://github.com/"
}
}
}
```## Install
Download from [Latest release](https://github.com/packsaddle/rust-gitconfig2json_cli/releases/latest) for your own environment.
or
```
$ cargo install gitconfig2json_cli
```## changelog
[changelog](./changelog.md)
## License
MIT/Apache-2.0 © [Sanemat](http://sane.jp)
[travis-url]: https://travis-ci.org/packsaddle/rust-gitconfig2json_cli
[travis-image]: https://img.shields.io/travis/packsaddle/rust-gitconfig2json_cli/master.svg?style=flat-square&label=travis
[appveyor-url]: https://ci.appveyor.com/project/sanemat/rust-gitconfig2json-cli/branch/master
[appveyor-image]: https://img.shields.io/appveyor/ci/sanemat/rust-gitconfig2json-cli/master.svg?style=flat-square&label=appveyor
[crates-url]: https://crates.io/crates/gitconfig2json_cli
[crates-image]: https://img.shields.io/crates/v/gitconfig2json_cli.svg?style=flat-square
[license-image]: https://img.shields.io/crates/l/gitconfig2json_cli.svg?style=flat-square