upbound / up

The @upbound CLI
Apache License 2.0
51 stars 41 forks source link

`up profile set space --profile` won't create a new profile #399

Closed branden closed 9 months ago

branden commented 9 months ago

What happened?

up login --profile=foo will update the profile foo or create it if it doesn't exist. However up profile set space --profile=foo will only update the existing profile, it won't create it. This is inconsistent and potentially confusing.

How can we reproduce it?

branden@crateria ~ % up profile list
CURRENT   NAME      TYPE    ACCOUNT   KUBECONFIG   KUBECONTEXT
*         default   token   branden

branden@crateria ~ % up profile set space --profile=space
up: error: profile.Cmd.AfterApply(): profile not found with identifier: space
branden@crateria ~ % up login --profile=cloud
3122e6b9-78c3-4264-995f-068364b00051 logged in
branden@crateria ~ % up profile list
CURRENT   NAME      TYPE    ACCOUNT   KUBECONFIG   KUBECONTEXT
*         cloud     token   branden
          default   token   branden

branden@crateria ~ %

What environment did it happen in?

v0.21.0