initial attempt at building Masonry
This commit is contained in:
20
templates/cli/commands.go
Normal file
20
templates/cli/commands.go
Normal file
@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
func exampleCmd() *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "example",
|
||||
Aliases: []string{"e"},
|
||||
Usage: "Run an example command",
|
||||
Action: func(c *cli.Context) error {
|
||||
fmt.Println("This is an example command")
|
||||
return nil
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// add commands here
|
Reference in New Issue
Block a user