encore icon indicating copy to clipboard operation
encore copied to clipboard

`-c`/`--create` flag for `encore ns switch` fails if namespace already exists

Open melkstam opened this issue 1 year ago • 2 comments
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.

example

melkstam avatar May 23 '24 09:05 melkstam

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

eandre avatar May 23 '24 09:05 eandre

Ah, I see. Feel free to close this then, it was just my expectation that was incorrect!

melkstam avatar May 23 '24 09:05 melkstam