-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
41 lines (30 loc) · 878 Bytes
/
main.go
File metadata and controls
41 lines (30 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package main
import (
"github.com/jeff-roche/biome/src/cmd"
"github.com/jeff-roche/biome/src/services"
)
var Version string
func main() {
/*var versionFlag bool
flag.BoolVar(&versionFlag, "version", false, "Display the current version of this utility")
flag.BoolVar(&versionFlag, "v", false, "Display the current version of this utility")
biomeName := flag.String("b", "", "[Required] The name of the biome to use")
flag.Parse()
// If they want to print the version, just do that
if versionFlag {
if Version == "" {
fmt.Println("v0.X - installed via go install")
} else {
fmt.Println(Version)
}
return // We're done here
}
// Fetch the command they want to run
cmds := flag.Args()
if len(cmds) < 1 {
log.Fatalln("No command provided")
}*/
// Setup the biome
biomeSvc := services.NewBiomeConfigurationService()
cmd.Execute(biomeSvc)
}