31 lines
No EOL
468 B
Go
31 lines
No EOL
468 B
Go
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
"log"
|
|
"lpm-cli/Commands"
|
|
"lpm-cli/Informations"
|
|
"os"
|
|
)
|
|
|
|
|
|
|
|
func main(){
|
|
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(),
|
|
},
|
|
}
|
|
|
|
|
|
err := app.Run(os.Args)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
} |