()
| 26 | } |
| 27 | |
| 28 | func init() { |
| 29 | updateCmd.SetHelpFunc(wrapHelp(helpmenus.RenderUpdateHelp)) |
| 30 | |
| 31 | rootCmd.AddCommand(updateCmd) |
| 32 | } |
| 33 | |
| 34 | func runUpdateCommand() error { |
| 35 | if os.Getenv("TNR_NO_SELFUPDATE") == "1" { |
nothing calls this directly
no test coverage detected