()
| 8 | ) |
| 9 | |
| 10 | func newVersionCmd() *cobra.Command { |
| 11 | return &cobra.Command{ |
| 12 | Use: "version", |
| 13 | Short: "Show build information", |
| 14 | Run: func(cmd *cobra.Command, _ []string) { |
| 15 | fmt.Fprintf(cmd.OutOrStdout(), "git-sync %s (commit %s, built %s)\n", |
| 16 | versioninfo.Version, versioninfo.Commit, versioninfo.Date) |
| 17 | }, |
| 18 | } |
| 19 | } |