@@ -6,6 +6,7 @@ package boxcli
6
6
import (
7
7
"github.com/pkg/errors"
8
8
"github.com/spf13/cobra"
9
+
9
10
"go.jetpack.io/devbox"
10
11
)
11
12
@@ -18,10 +19,10 @@ func updateCmd() *cobra.Command {
18
19
19
20
command := & cobra.Command {
20
21
Use : "update [pkg]..." ,
21
- Short : "Updates packages in your devbox" ,
22
- Long : "Updates one, many, or all packages in your devbox. " +
22
+ Short : "Update packages in your devbox" ,
23
+ Long : "Update one, many, or all packages in your devbox. " +
23
24
"If no packages are specified, all packages will be updated. " +
24
- "Only updates versioned packages (e.g. `[email protected] `), not packages that are pinned to a nix channel (e.g. `python3`)" ,
25
+ "Only update versioned packages (e.g. `[email protected] `), not packages that are pinned to a nix channel (e.g. `python3`)" ,
25
26
PreRunE : ensureNixInstalled ,
26
27
RunE : func (cmd * cobra.Command , args []string ) error {
27
28
return updateCmdFunc (cmd , args , flags )
@@ -32,11 +33,7 @@ func updateCmd() *cobra.Command {
32
33
return command
33
34
}
34
35
35
- func updateCmdFunc (
36
- cmd * cobra.Command ,
37
- args []string ,
38
- flags * updateCmdFlags ,
39
- ) error {
36
+ func updateCmdFunc (cmd * cobra.Command , args []string , flags * updateCmdFlags ) error {
40
37
box , err := devbox .Open (flags .config .path , cmd .ErrOrStderr ())
41
38
if err != nil {
42
39
return errors .WithStack (err )
0 commit comments