From ae889100c62674d8e72889f13c2fbf17f60e0c55 Mon Sep 17 00:00:00 2001 From: anoriqq Date: Sat, 21 May 2022 23:33:43 +0900 Subject: [PATCH] feat: add config fields for getscript command --- internal/cmd/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/cmd/config.go b/internal/cmd/config.go index 2680992..173aeda 100644 --- a/internal/cmd/config.go +++ b/internal/cmd/config.go @@ -36,6 +36,12 @@ func configRun(_ *cobra.Command, args []string) error { switch strings.ToLower(configField) { case "scriptdir": config.SetScriptDir(configValue) + case "scriptrepourl": + config.SetScriptRepoURL(configValue) + case "githubusername": + config.SetGitHubUsername(configValue) + case "githubaccesstoken": + config.SetGitHubAccessToken(configValue) default: return fmt.Errorf("unknown config field: %s", configField) }