@@ -6,7 +6,6 @@ package boxcli
6
6
import (
7
7
"fmt"
8
8
9
- "github.com/fatih/color"
10
9
"github.com/pkg/errors"
11
10
"github.com/spf13/cobra"
12
11
"go.jetpack.io/devbox"
@@ -22,12 +21,12 @@ func ShellCmd() *cobra.Command {
22
21
flags := shellCmdFlags {}
23
22
command := & cobra.Command {
24
23
Use : "shell -- [<cmd>]" ,
25
- Short : "Start a new shell with access to your packages" ,
26
- Long : "Start a new shell with access to your packages.\n \n " +
27
- "The shell will be started using the devbox.json found in the --config flag directory. " +
28
- "If --config isn't set, then devbox recursively searches the current directory and its parents. \n \n " +
29
- "[Deprecated] If invoked as devbox shell -- <cmd>, devbox will run the command in a shell and then exit . " +
30
- "This behavior is deprecated and will be removed. Please use devbox run -- <cmd> instead ." ,
24
+ Short : "Start a new shell or run a command with access to your packages" ,
25
+ Long : "Start a new shell or run a command with access to your packages.\n \n " +
26
+ "If invoked without `cmd`, devbox will start an interactive shell. \n " +
27
+ "If invoked with a `cmd`, devbox will run the command in a shell and then exit. \n " +
28
+ "In both cases, the shell will be started using the devbox.json found in the --config flag directory . " +
29
+ "If --config isn't set, then devbox recursively searches the current directory and its parents ." ,
31
30
Args : validateShellArgs ,
32
31
PreRunE : ensureNixInstalled ,
33
32
RunE : func (cmd * cobra.Command , args []string ) error {
@@ -69,9 +68,6 @@ func runShellCmd(cmd *cobra.Command, args []string, flags shellCmdFlags) error {
69
68
}
70
69
71
70
if len (cmds ) > 0 {
72
- fmt .Fprint (cmd .ErrOrStderr (),
73
- color .HiYellowString ("[Warning] \" devbox shell -- <cmd>\" is deprecated and will disappear " +
74
- "in a future version. Use \" devbox run -- <cmd>\" instead\n " ))
75
71
err = box .Exec (cmds ... )
76
72
} else {
77
73
err = box .Shell ()
0 commit comments