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