mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-12 18:54:31 +00:00
19 lines
414 B
Go
19 lines
414 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print version information",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(versionCmd).Standalone()
|
|
versionCmd.Flags().BoolP("verbose", "v", false, "Verbose: displays additional version information")
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|