()
| 16 | } |
| 17 | |
| 18 | func (cliVersion) NewCommand() *cobra.Command { |
| 19 | cmd := &cobra.Command{ |
| 20 | Use: "version", |
| 21 | Short: "Display version", |
| 22 | Args: args.NoArgs, |
| 23 | DisableAutoGenTag: true, |
| 24 | Run: func(_ *cobra.Command, _ []string) { |
| 25 | _, _ = os.Stdout.WriteString(cwversion.FullString()) |
| 26 | }, |
| 27 | } |
| 28 | |
| 29 | return cmd |
| 30 | } |
nothing calls this directly
no test coverage detected