Repo Fetcher is a repository fetcher written in Go.
-
Support to fetch repository in server mode (http).
-
Support to fetch repository in standalone mode (stdio).
- Git 2.26+
usage: repofetcher [<flags>]
Repository Fetcher
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--version Show application version.
--addr=":9093" Server listen address (http)
--mode="stdio" Communication mode (http|stdio)
--repo="repo.json" Repo list in json (stdio)Repo Fetcher parameters can be set in JSON file (standalone mode) or as HTTP request (server mode).
An example of configuration in repo.json:
{
"repo": [
{
"branch": "master",
"clone": [
{
"sparse": [
"cmd"
]
}
],
"depth": 1,
"name": "repofetcher",
"path": "repofetcher",
"url": "https://github.com/craftslab"
}
]
}- Server mode (http)
repofetcher --mode="http" --addr=":9093"- Standalone mode (stdio)
repofetcher --mode="stdio" --repo="repo.json"Project License can be found here.