refactor: scaffolded odin project with CLI parser, version command, Go fallback

This commit is contained in:
2026-06-11 20:02:12 -04:00
parent c6d0308842
commit e989b88303
11 changed files with 385 additions and 12 deletions

13
version.odin Normal file
View File

@@ -0,0 +1,13 @@
package main
import "core:fmt"
VERSION :: "0.2.0"
cmd_version :: proc(cmd: ^Command) {
if has_flag(cmd, "long") || has_flag(cmd, "l") {
fmt.printf("envr version %s\n", VERSION)
} else {
fmt.println(VERSION)
}
}