6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-06 13:57:56 +00:00

Add a --bundle flag accepting a bundle file of repos to clone

Also refactor CloneRepo to accept CloneOpts as agruments - makes it cleaner and easier to test.
This commit is contained in:
Grzegorz Dlugoszewski
2020-06-12 17:01:35 +02:00
parent f9f2553231
commit 823a522a97
8 changed files with 190 additions and 26 deletions

View File

@@ -13,20 +13,21 @@ import (
// Gitconfig section name and env var prefix
const GitgetPrefix = "gitget"
// Flag keys and default values
// Flag keys and their default values
const (
KeyReposRoot = "reposRoot"
DefReposRoot = "repositories"
KeyDefaultHost = "defaultHost"
DefDefaultHost = "github.com"
KeyPrivateKey = "privateKey"
DefPrivateKey = "id_rsa"
KeyOutput = "out"
DefOutput = OutFlat
KeyBranch = "branch"
DefBranch = "master"
KeyBundle = "bundle"
KeyDefaultHost = "defaultHost"
DefDefaultHost = "github.com"
KeyFetch = "fetch"
KeyList = "list"
KeyOutput = "out"
DefOutput = OutFlat
KeyPrivateKey = "privateKey"
DefPrivateKey = "id_rsa"
KeyReposRoot = "reposRoot"
DefReposRoot = "repositories"
)
// Allowed values for the --out flag