Skip to content

Commit

Permalink
feat: add config fields for getscript command
Browse files Browse the repository at this point in the history
  • Loading branch information
anoriqq committed May 21, 2022
1 parent 2bfda86 commit ae88910
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ae88910

Please sign in to comment.