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/lpm-cli.go
netbenix 4ed0fe289d Changes on push Command entry
Changed Usage ang Description
2021-10-30 16:58:52 +02:00

51 lines
No EOL
874 B
Go

package main
import (
"fmt"
"github.com/urfave/cli/v2"
"log"
"os"
)
func main(){
app := &cli.App{
Name: "lotus-pm",
Usage: "Lotus Package Manager",
Authors: []*cli.Author {
{
Name: "netbenix",
Email: "netbenix@codenoodles.de",
},
{
Name: "virusbear",
},
{
Name: "maduut",
},
},
Copyright: "(c) 2021 LPM-Group",
Commands: []*cli.Command{
{
Name: "push",
Usage: "Push a package",
Description: "Pushes a package to the default registry server, or to a user-defined registry server.",
HelpName: "push",
Action: func(c *cli.Context) error {
//Do Stuff
return nil
},
OnUsageError: func(c *cli.Context, err error, isSubcommand bool) error {
fmt.Printf("[ERROR] %s", err.Error())
return err
},
},
},
}
err := app.Run(os.Args)
if err != nil{
log.Fatal(err)
}
}