6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-09 18:34:18 +00:00

Add a --fetch flag to first fetch from remotes before printing repos status

This commit is contained in:
Grzegorz Dlugoszewski
2020-06-08 14:54:19 +02:00
parent e5c3285040
commit ee26ddc38f
3 changed files with 26 additions and 7 deletions

View File

@@ -10,8 +10,11 @@ import (
"github.com/spf13/viper"
)
// Gitconfig section name and env var prefix
const GitgetPrefix = "gitget"
// Flag keys and default values
const (
GitgetPrefix = "gitget"
KeyReposRoot = "reposRoot"
DefReposRoot = "repositories"
KeyDefaultHost = "defaultHost"
@@ -20,8 +23,11 @@ const (
DefPrivateKey = "id_rsa"
KeyOutput = "out"
DefOutput = OutFlat
KeyFetch = "fetch"
KeyList = "list"
)
// Allowed values for the --out flag
const (
OutFlat = "flat"
OutSmart = "smart"