33 lines
No EOL
589 B
Go
33 lines
No EOL
589 B
Go
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
"lpm-cli/Commands"
|
|
"lpm-cli/Informations"
|
|
"lpm-cli/Tools"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
|
|
Tools.LoggerInit()
|
|
|
|
Tools.InfoLogger.Printf("Lotus-PM was executed")
|
|
app := &cli.App {
|
|
Name: "lotus-pm",
|
|
Usage: "Lotus Package Manager",
|
|
Authors: Informations.GetAuthors(),
|
|
Copyright: "(c) 2021 LPM-Group",
|
|
Commands: []*cli.Command {
|
|
Commands.PushCommand(),
|
|
Commands.PullCommand(),
|
|
Commands.SearchCommand(),
|
|
Commands.ListCommand(),
|
|
},
|
|
}
|
|
|
|
err := app.Run(os.Args)
|
|
if err != nil {
|
|
Tools.ErrorLogger.Fatal(err)
|
|
}
|
|
} |