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/Commands/PushCommand.go
2021-11-06 21:20:49 +01:00

28 lines
560 B
Go

package Commands
import (
"github.com/urfave/cli/v2"
"lpm-cli/Lotus"
)
func NewPushCommand() *cli.Command {
logger := Lotus.Logger("pushCommand")
return &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 {
if err != nil{
logger.Fatal(err)
}
return err
},
}
}