Skip to content

Commit

Permalink
Allow exactly one argument to organizations.Switch
Browse files Browse the repository at this point in the history
Before, running `koyeb organizations switch` would crash
  • Loading branch information
nicoche committed Nov 16, 2023
1 parent 71b677b commit a6cba78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
- https://github.com/koyeb/koyeb-cli/issues/147
* Support `koyeb secret show <secret_name>`. *The API behind this command is not stable yet and may change in the future. This command can break at any time and will require an update of the CLI.*
- https://github.com/koyeb/koyeb-cli/issues/150
* Fix an issue where running `koyeb organizations switch` without specifying an organization or specifying more than one organization would crash.
- https://github.com/koyeb/koyeb-cli/issues/151


**v3.3.2**

Expand Down
1 change: 1 addition & 0 deletions pkg/koyeb/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func NewOrganizationCmd() *cobra.Command {
switchCmd := &cobra.Command{
Use: "switch",
Short: "Switch the CLI context to another organization",
Args: cobra.ExactArgs(1),
RunE: WithCLIContext(h.Switch),
}
rootCmd.AddCommand(switchCmd)
Expand Down

0 comments on commit a6cba78

Please sign in to comment.