| Crates.io | ghopac |
| lib.rs | ghopac |
| version | 0.1.0 |
| created_at | 2017-08-18 07:14:03.984429+00 |
| updated_at | 2017-08-18 07:14:03.984429+00 |
| description | GitHub Organization Pull And Clone |
| homepage | |
| repository | https://github.com/nharward/ghopac |
| max_upload_size | |
| id | 27966 |
| size | 51,412 |
Utility to pull - and/or clone if missing on local disk - all repos you have access to from one or more Github organizations. Will also pull from additional repos that you have already cloned if specified in the configuration file - these do not need to belong to any particular Github organizations.
cargo build --release; your optimized binary should be in ./target/release/ghopaccargo install to place ghopac in your ${HOME}/.cargo/bin directory; add to your PATH if desiredGet a Github access token at https://github.com/settings/tokens; minimum access should be reading your orgs and repos
Create a config file in ${XDG_CONFIG_HOME}/ghopac/config.json, example below:
{
"concurrency": 4,
"verbose": true,
"github_access_token": "<from step 1>",
"orgs": [
{
"org": "my_github_org",
"path": "/my/base/code/dir/for/my_github_org"
}
],
"syncpoints": [
"/some/other/cloned/repo/dir",
"/yet/another/separately/cloned/repo/dir"
]
}
Run ghopac
orgs and just use syncpointsconcurrency if left unspecified will default to 4syncpoints do not have to belong to any particular Github organization; they are just local directories where you expect git pull to work correctly