odin: scaffold project with CLI parser, version command, Go fallback

This commit is contained in:
2026-06-11 20:16:00 -04:00
parent 28f96df4c0
commit d84e43d044
10 changed files with 365 additions and 3 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)
}
}