This repository has been archived on 2026-03-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
lotus-package-manager/main.go
2021-11-06 20:55:55 +01:00

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)
}
}