-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add nix env shell
#10807
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
Add nix env shell
#10807
Conversation
| struct CmdEnv : NixMultiCommand | ||
| { | ||
| CmdEnv() : NixMultiCommand("env", RegisterCommand::getCommandsFor({"env"})) | ||
| { } | ||
|
|
||
| std::string description() override | ||
| { | ||
| return "manipulate the process environment"; | ||
| } | ||
|
|
||
| Category category() override { return catUtility; } | ||
| }; | ||
|
|
||
| static auto rCmdEnv = registerCommand<CmdEnv>("env"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new and perfectly analogous to CmdStore.
| } | ||
| }; | ||
|
|
||
| static auto rCmdShell = registerCommand2<CmdShell>({"env", "shell"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved verbatim, except for the last line.
The last line has the canonical name, which appears in the help.
nix shell --help opens that page directly, and all the rest is also transparently aliased, without warning.
73c8e1f to
d93cc11
Compare
Motivation
Start implementing #10504.
Most of the code has just moved to
env.cc.Context
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.