MCPcopy Index your code
hub / github.com/jetify-com/devbox / updateAllProjects

Function updateAllProjects

internal/boxcli/update.go:95–111  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

93}
94
95func updateAllProjects(cmd *cobra.Command, args []string) error {
96 boxes, err := multi.Open(&devopt.Opts{
97 Stderr: cmd.ErrOrStderr(),
98 })
99 if err != nil {
100 return errors.WithStack(err)
101 }
102 for _, box := range boxes {
103 if err := box.Update(cmd.Context(), devopt.UpdateOpts{
104 Pkgs: args,
105 IgnoreMissingPackages: true,
106 }); err != nil {
107 return err
108 }
109 }
110 return multi.SyncLockfiles(args)
111}

Callers 1

updateCmdFuncFunction · 0.85

Calls 3

OpenFunction · 0.92
SyncLockfilesFunction · 0.92
UpdateMethod · 0.80

Tested by

no test coverage detected