Skip to content

Commit

Permalink
Merge pull request #622 from ahitacat/ocm-1398
Browse files Browse the repository at this point in the history
OCM-1398: support 'user' as variable for ocm config
  • Loading branch information
andreadecorte committed Jun 18, 2024
2 parents 5e4c99b + 2a1f92e commit d890c1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ocm/config/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ func run(cmd *cobra.Command, argv []string) error {
fmt.Fprintf(os.Stdout, "%s\n", cfg.URL)
case "pager":
fmt.Fprintf(os.Stdout, "%s\n", cfg.Pager)
case "user":
fmt.Fprintf(os.Stdout, "%s\n", cfg.User)
default:
return fmt.Errorf("Unknown setting")
}
Expand Down
2 changes: 2 additions & 0 deletions cmd/ocm/config/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func run(cmd *cobra.Command, argv []string) error {
cfg.TokenURL = value
case "url":
cfg.URL = value
case "user":
cfg.User = value
case "pager":
cfg.Pager = value
default:
Expand Down

0 comments on commit d890c1f

Please sign in to comment.