Open dlesnoff opened 1 year ago
Seems to be an easy fix:
(added self
to command check and ordered of
clauses alphabetically)
diff --git a/src/choosenim.nim b/src/choosenim.nim
index 7493878..fba9c81 100644
--- a/src/choosenim.nim
+++ b/src/choosenim.nim
@@ -328,14 +328,16 @@ proc performAction(params: CliParams) =
report(initEvent(ActionEvent), params)
case params.command.normalize
- of "update":
- update(params)
+ of "remove":
+ remove(params)
+ of "self":
+ updateSelf(params)
of "show":
show(params)
+ of "update":
+ update(params)
of "versions":
versions(params)
- of "remove":
- remove(params)
else:
choose(params)
I tried to run (by mistake)
which gave:
It tried to download the Nim 0.8.4 version with my choosenim version: 0.8.4 This is not a problem since this Nim version does not exist, but it could become problematic if choosenim version matches an existing Nim version.
Expected output
Either an error or
self
becomes an alias ofupdate self