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/InstallCommand.go
2021-11-20 15:56:57 +01:00

28 lines
533 B
Go

package Commands
import (
"github.com/urfave/cli/v2"
"lpm-cli/Lotus"
)
func NewInstallCommand() *cli.Command{
logger := Lotus.Logger("pullCommand")
return &cli.Command {
Name: "install",
Usage: "Installs a package",
Description: "Installs a package from the a registry server.",
HelpName: "install",
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
},
}
}