Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

cli: Requires -app flag if config set -scope=app is set. #3040

Merged
merged 2 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3040.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: requires -app flag if `config set -scope=app` is set
```
4 changes: 4 additions & 0 deletions internal/cli/config_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ func (c *ConfigSetCommand) Run(args []string) int {
}

case "app":
if c.flagApp == "" {
fmt.Fprintf(os.Stderr, "-scope requires -app set if scope is 'app'")
return 1
}
configVar.Target.AppScope = &pb.ConfigVar_Target_Application{
Application: &pb.Ref_Application{
Project: projectRef.Project,
Expand Down