feat: project scaffold, version command, build
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.dcglab.co.uk/steve/emcli/internal/version"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) >= 2 && os.Args[1] == "version" {
|
||||
fmt.Println(version.String)
|
||||
return
|
||||
}
|
||||
fmt.Fprintln(os.Stderr, "emcli: no command given")
|
||||
os.Exit(2)
|
||||
}
|
||||
Reference in New Issue
Block a user