34 lines
596 B
Go
34 lines
596 B
Go
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
"lpm-cli/Commands"
|
|
"lpm-cli/Informations"
|
|
"lpm-cli/Lotus"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
|
|
logger := Lotus.Logger("mainThread")
|
|
|
|
Lotus.CheckIfRegistryListExists()
|
|
|
|
app := &cli.App{
|
|
Name: "lotus-pm",
|
|
Usage: "Lotus Package Manager",
|
|
Authors: Informations.GetAuthors(),
|
|
Copyright: "(c) 2021 LPM-Group",
|
|
Commands: []*cli.Command{
|
|
Commands.NewPushCommand(),
|
|
Commands.NewInstallCommand(),
|
|
Commands.NewSearchCommand(),
|
|
Commands.NewListCommand(),
|
|
},
|
|
}
|
|
|
|
err := app.Run(os.Args)
|
|
if err != nil {
|
|
logger.Fatal(err)
|
|
}
|
|
}
|