MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / init

Function init

core/cmd/server/cmd/update.go:27–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25)
26
27func 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
43var updateUserNameFlag string
44var updatePasswordUserName string

Callers

nothing calls this directly

Calls 1

loadUpdateHelperFunction · 0.85

Tested by

no test coverage detected