21 lines
302 B
Go
21 lines
302 B
Go
package welcome
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
func Command() *cli.Command {
|
|
|
|
return &cli.Command{
|
|
Name: "welcome",
|
|
Usage: "Explains cli tool",
|
|
Action: action,
|
|
}
|
|
}
|
|
|
|
func action(*cli.Context) error {
|
|
fmt.Println("Welcome, \n you can use -h, --help for help.")
|
|
return nil
|
|
}
|