Skip to content

[cleanup] remove --use-cached-print-dev-env from shellenv #1153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions internal/boxcli/shellenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ import (
)

type shellEnvCmdFlags struct {
config configFlags
runInitHook bool
install bool
useCachedPrintDevEnv bool
pure bool
config configFlags
runInitHook bool
install bool
pure bool
}

func shellEnvCmd() *cobra.Command {
Expand Down Expand Up @@ -45,15 +44,6 @@ func shellEnvCmd() *cobra.Command {
command.Flags().BoolVar(
&flags.pure, "pure", false, "If this flag is specified, devbox creates an isolated environment inheriting almost no variables from the current environment. A few variables, in particular HOME, USER and DISPLAY, are retained.")

// This is no longer used. Remove after 0.4.8 is released.
command.Flags().BoolVar(
&flags.useCachedPrintDevEnv,
"use-cached-print-dev-env",
false,
"[internal - not meant for general usage] Use the cached nix print-dev-env environment instead of the current environment",
)
// This is used by bin wrappers and not meant for end users.
command.Flag("use-cached-print-dev-env").Hidden = true
flags.config.register(command)

command.AddCommand(shellEnvOnlyPathWithoutWrappersCmd())
Expand Down