22 lines
366 B
Go
Raw Normal View History

2024-05-24 19:41:44 +02:00
package welcome
import (
"fmt"
"github.com/DariusKlein/kleinCommand/types"
"github.com/urfave/cli/v2"
)
func Command(config types.Config) *cli.Command {
return &cli.Command{
Name: "welcome",
Usage: "Explains cli tool",
2024-05-24 19:41:44 +02:00
Action: action,
}
}
2024-05-24 19:41:44 +02:00
func action(*cli.Context) error {
fmt.Println("Welcome, \n you can use -h, --help for help.")
return nil
}