`juju switch -` doesn't switch to previous model
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
In Progress
|
Wishlist
|
Guillaume Fouillet |
Bug Description
More of a feature request
Lots of cli tools with a navigation aspect use the dash character to navigate back to the previous place. Such as `cd` and `git checkout`
I think it would be great if `juju switch` could do a similar thing!
setup:
```
$ juju models
Controller: lxd
Model Cloud/Region Type Status Machines Units Access Last connection
controller localhost/localhost lxd available 1 1 admin just now
default* localhost/localhost lxd available 3 3 admin 42 seconds ago
$ juju switch controller
lxd:admin/default -> lxd:admin/
```
expected (requested) behaviour
```
$ juju switch -
lxd:admin/
```
actual behaviour
```
juju switch -
ERROR model name "admin/-" not valid
```
Changed in juju: | |
milestone: | 3.0.1 → 3.0.2 |
Changed in juju: | |
milestone: | 3.0.2 → 3.0.3 |
Changed in juju: | |
milestone: | 3.0.3 → 3.1-beta1 |
tags: | added: bitesize |
Changed in juju: | |
assignee: | nobody → Nicolas Vinuesa (nvinuesa) |
Changed in juju: | |
milestone: | 3.1-beta1 → 3.1-rc1 |
Changed in juju: | |
milestone: | 3.1-rc1 → 3.1-rc2 |
Changed in juju: | |
milestone: | 3.1-rc2 → 3.1-rc3 |
Changed in juju: | |
assignee: | Nicolas Vinuesa (nvinuesa) → nobody |
assignee: | nobody → Guillame Fouillet (gfouillet) |
Changed in juju: | |
milestone: | 3.1-rc3 → 4.0-beta4 |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 4.0-beta4 → 3.6-beta1 |
Changed in juju: | |
milestone: | 3.6-beta1 → 3.6-beta2 |
Thx Jack,
Sounds reasonable.