Moved commands to 'Commands' folder
This commit is contained in:
parent
44b912ed43
commit
7ff62e1a06
3 changed files with 61 additions and 39 deletions
27
Commands/PullCommand.go
Normal file
27
Commands/PullCommand.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package Commands
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/urfave/cli/v2"
|
||||
"log"
|
||||
)
|
||||
|
||||
func PullCommand() *cli.Command{
|
||||
return &cli.Command {
|
||||
Name: "pull",
|
||||
Usage: "Pull a package",
|
||||
Description: "Pulls a package from the default registry server, or to a user-defined registry server.",
|
||||
HelpName: "pull",
|
||||
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())
|
||||
log.Fatal(err)
|
||||
}
|
||||
return err
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in a new issue