diff --git a/main.go b/main.go index a6a458a..86c0ce8 100644 --- a/main.go +++ b/main.go @@ -8,19 +8,18 @@ import ( "os" ) - func main() { logger := Lotus.Logger("mainThread") Lotus.CheckIfRegistryListExists() - app := &cli.App { + app := &cli.App{ Name: "lotus-pm", Usage: "Lotus Package Manager", Authors: Informations.GetAuthors(), Copyright: "(c) 2021 LPM-Group", - Commands: []*cli.Command { + Commands: []*cli.Command{ Commands.NewPushCommand(), Commands.NewInstallCommand(), Commands.NewSearchCommand(), @@ -28,9 +27,8 @@ func main() { }, } - err := app.Run(os.Args) - if err != nil{ + if err != nil { logger.Fatal(err) } -} \ No newline at end of file +}