fix: Got rid of go fallback code.

This commit is contained in:
2026-06-12 10:25:09 -04:00
parent 7c7ddf46f6
commit 7629dd2ce7
4 changed files with 2 additions and 61 deletions

View File

@@ -35,21 +35,6 @@ COMMANDS := []CommandInfo{
{"edit-config", "envr edit-config", "Edit your config with your default editor", ""},
}
IMPLEMENTED_COMMANDS := []string{
"init",
"version",
"deps",
"list",
"backup",
"add",
"remove",
"restore",
"edit-config",
"check",
"scan",
"sync",
}
parse_args :: proc() -> (cmd: Command, ok: bool) {
args := os.args
if len(args) < 2 {
@@ -103,15 +88,6 @@ parse_args :: proc() -> (cmd: Command, ok: bool) {
return cmd, true
}
is_implemented :: proc(name: string) -> bool {
for c in IMPLEMENTED_COMMANDS {
if c == name {
return true
}
}
return false
}
has_flag :: proc(cmd: ^Command, name: string) -> bool {
_, ok := cmd.flags[name]
if ok {