func main() { cmd := command.NewCommand(registry.GetRegistry()) err := cmd.Run(os.Args) if err != nil { cmd.PrintError(err) } }
func main() { cmd := command.NewCommand(registry.GetRegistry()) err := cmd.Run(os.Args) if err != nil { log.Errorf("error: %s\n", err) } }
func main() { log.InitWithConfig(log.Config{Name: "console"}) cmd := command.NewCommand(registry.GetRegistry()) err := cmd.Run(os.Args) if err != nil { log.Errorf("error: %s\n", err) } }
func main() { r, err := registry.GetRegistry() if err != nil { log.Errorf("Error: %s\n", err) return } cmd := command.NewCommand(r) if err := cmd.Run(os.Args); err != nil { log.Errorf("Error: %s\n", err) } }