MCPcopy Create free account
hub / github.com/jetify-com/devbox / selfUpdateCmd

Function selfUpdateCmd

internal/boxcli/version.go:41–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func 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
54func versionCmdFunc(cmd *cobra.Command, _ []string, flags versionFlags) error {
55 w := cmd.OutOrStdout()

Callers 1

versionCmdFunction · 0.85

Calls 1

SelfUpdateFunction · 0.92

Tested by

no test coverage detected