feat(config): warn_on_delete, warn_on_overwrite, display_art toggles in config
This commit is contained in:
parent
62c770dbf3
commit
6efa9863fe
5 changed files with 43 additions and 19 deletions
|
|
@ -28,15 +28,18 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
version = "2025.51"
|
||||
version = "pda! 2025.51 release"
|
||||
)
|
||||
|
||||
// versionCmd represents the version command
|
||||
var versionCmd = &cobra.Command{
|
||||
Use: "version",
|
||||
Short: "Show the version of your CLI tool",
|
||||
Short: "Display pda! version",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Printf("pda! %s\n", version)
|
||||
if config.DisplayArt {
|
||||
fmt.Print(asciiArt + "\n ")
|
||||
}
|
||||
fmt.Printf("%s\n", version)
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue