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-10-30 21:36:02 +02:00

27 lines
576 B
Go

package Commands
import (
"fmt"
"github.com/urfave/cli/v2"
"lpm-cli/Tools"
)
func PushCommand() *cli.Command {
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{
fmt.Printf("[ERROR] %s", err.Error())
Tools.ErrorLogger.Fatal(err)
}
return err
},
}
}