Renamed pull to install
This commit is contained in:
parent
d37dbddb40
commit
f5af0b4802
1 changed files with 5 additions and 5 deletions
28
Commands/InstallCommand.go
Normal file
28
Commands/InstallCommand.go
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in a new issue