mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
21 lines
456 B
Go
21 lines
456 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version [OPTIONS]",
|
|
Short: "Show the Docker version information",
|
|
GroupID: "common",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(versionCmd).Standalone()
|
|
|
|
versionCmd.Flags().StringP("format", "f", "", "Format the output using the given Go template")
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|