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