github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/main.go (about) 1 /* For license and copyright information please see the LEGAL file in the code repository */ 2 3 package main 4 5 import ( 6 "os" 7 8 "github.com/GeniusesGroup/libgo/modules" 9 ) 10 11 func init() { 12 modules.RootCommand.Init() 13 } 14 15 func main() { 16 // remove app binary path from os args 17 var args = os.Args[1:] 18 var err = modules.RootCommand.ServeCLA(args) 19 if err != nil { 20 os.Exit(1) 21 } 22 }