Skip to content

craftslab/repofetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repofetcher

Build Status Coverage Status Go Report Card License Tag

Introduction

Repo Fetcher is a repository fetcher written in Go.

Feature

  • Support to fetch repository in server mode (http).

  • Support to fetch repository in standalone mode (stdio).

Requirement

  • Git 2.26+

Usage

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)

Setting

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"
    }
  ]
}

Running

  • Server mode (http)
repofetcher --mode="http" --addr=":9093"
  • Standalone mode (stdio)
repofetcher --mode="stdio" --repo="repo.json"

License

Project License can be found here.

About

Repo fetcher

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors