()
| 25 | ) |
| 26 | |
| 27 | func init() { |
| 28 | updateCmd.SetHelpFunc(func(c *cobra.Command, s []string) { |
| 29 | i18n.UseI18nForCmd(language) |
| 30 | loadUpdateHelper() |
| 31 | }) |
| 32 | |
| 33 | RootCmd.AddCommand(updateCmd) |
| 34 | updateCmd.AddCommand(updateUserName) |
| 35 | updateUserName.Flags().StringVar(&updateUserNameFlag, "username", "", "username") |
| 36 | updateCmd.AddCommand(updatePassword) |
| 37 | updatePassword.Flags().StringVar(&updatePasswordUserName, "username", "", "username") |
| 38 | updateCmd.AddCommand(updatePort) |
| 39 | |
| 40 | updateCmd.AddCommand(updateVersion) |
| 41 | } |
| 42 | |
| 43 | var updateUserNameFlag string |
| 44 | var updatePasswordUserName string |
nothing calls this directly
no test coverage detected