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

Add a "dump" output option to git-list

It prints a list of all repos URL and is supposed to be consumed by `git get --dump` option.
This commit is contained in:
Grzegorz Dlugoszewski
2020-06-18 11:05:39 +02:00
parent edf60064a8
commit da8f0931d0
4 changed files with 50 additions and 12 deletions

View File

@@ -18,12 +18,12 @@ const GitgetPrefix = "gitget"
const (
KeyBranch = "branch"
DefBranch = "master"
KeyBundle = "bundle"
KeyDump = "dump"
KeyDefaultHost = "defaultHost"
DefDefaultHost = "github.com"
KeyFetch = "fetch"
KeyOutput = "out"
DefOutput = OutSimple
DefOutput = OutTree
KeyPrivateKey = "privateKey"
DefPrivateKey = "id_rsa"
KeyReposRoot = "reposRoot"
@@ -32,9 +32,10 @@ const (
// Allowed values for the --out flag
const (
OutFlat = "flat"
OutSmart = "smart"
OutSimple = "simple"
OutDump = "dump"
OutFlat = "flat"
OutTree = "tree"
OutSmart = "smart"
)
// Version metadata set by ldflags during the build.