mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 10:38:33 -04:00
build: Converted Makefile and flake package.
This commit is contained in:
12
cmd_version.odin
Normal file
12
cmd_version.odin
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import "core:fmt"
|
||||
|
||||
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