()
| 39 | } |
| 40 | |
| 41 | func selfUpdateCmd() *cobra.Command { |
| 42 | command := &cobra.Command{ |
| 43 | Use: "update", |
| 44 | Short: "Update devbox launcher and binary", |
| 45 | Args: cobra.ExactArgs(0), |
| 46 | RunE: func(cmd *cobra.Command, args []string) error { |
| 47 | return vercheck.SelfUpdate(cmd.OutOrStdout(), cmd.ErrOrStderr()) |
| 48 | }, |
| 49 | } |
| 50 | |
| 51 | return command |
| 52 | } |
| 53 | |
| 54 | func versionCmdFunc(cmd *cobra.Command, _ []string, flags versionFlags) error { |
| 55 | w := cmd.OutOrStdout() |
no test coverage detected