mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
refactor: scaffolded odin project with CLI parser, version command, Go fallback
This commit is contained in:
13
version.odin
Normal file
13
version.odin
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user