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
2022-08-27 12:48:01 +02:00

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