21 lines
331 B
Go
21 lines
331 B
Go
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
|