encore
encore copied to clipboard
`-c`/`--create` flag for `encore ns switch` fails if namespace already exists
trafficstars
When using the -c/--create flag for encore ns switch, I expect it to create if not already exists. However, it currently fails if the namespace already exists.
The error message can certainly be better, but it seems correct to me that you get an error. git switch -c has the same behavior:
$ git branch test
$ git switch -c test
fatal: a branch named 'test' already exists
Ah, I see. Feel free to close this then, it was just my expectation that was incorrect!