func main() { p, _ := filepath.Abs(defaultConfigPath) log.Println(fmt.Errorf("Conf: %s", p)) config.ReadConfigFile(defaultConfigPath) name := cmd.ExtractProgramName(os.Args[0]) manager := buildManager(name) manager.Run(os.Args[1:]) }
//Run the commands from cli. func main() { name := cmd.ExtractProgramName(os.Args[0]) manager := cmdRegistry(name) manager.Run(os.Args[1:]) }