upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

Fix getting stuck in space #508

Closed RedbackThomson closed 1 month ago

RedbackThomson commented 1 month ago

Description of your changes

Fixes https://github.com/upbound/up/issues/507

I have:

How has this code been tested

We can now navigate into and then out of a space

$ ./up ctx upbound/upbound-gcp-us-west-1
Kubeconfig context "dev/maincluster" switched to: Upbound upbound/upbound-gcp-us-west-1/
$ ./up ctx .
Kubeconfig context "upbound": Upbound upbound/upbound-gcp-us-west-1/
$ ./up ctx ./default
Kubeconfig context "upbound" switched to: Upbound upbound/upbound-gcp-us-west-1/default/