-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Group 'nix' subcommands #3858
Group 'nix' subcommands #3858
Conversation
Sounds grate. But I think this creates more a need for things like |
I was thinking |
I guess |
I think this would be confusing since we already have Also, |
Apart from @matthewbauer's comment I think that while this might look pretty, it may be fairly hard to remember which command is under which two(!) parents which is something at least I'd be rather unhappy with during daily use. Also I'd like to mention that |
I agree, which is why I didn't add a
Sure, but the git CLI is also widely considered to be a bit of a mess. And it does have second-level commands like
Hm yeah, that's pretty annoying... |
Yes that's the case for special features of The great thing about tools like git is that I can press |
Maybe |
Needed for commands like `nix flake check` where the behavior for `nix flake <tab>` must be the same as for `nix <tab>`. This will become relevant in the future as it's planned to namespace even more-commands[1]. For simplicity I didn't test full recursion, we probably have to fix this to support e.g. `nix foo bar baz` in the future. [1] NixOS/nix#3858
Need to update this to be in line with #4302. |
From the 'nix' UX review.
This only differs from 'nix store dump-path' in that the path doesn't need to be a store path.
1c836f8
to
ea2062a
Compare
As suggested in https://gist.github.com/gilligan/a0942a490c5ab5b854cc5ad668374529, this PR puts various
nix
subcommands underneathnix store
,nix hash
andnix nar
. This unclutters the top-level interface.I didn't move
nix path-info
since I don't know the best name (e.g.nix store path-info
?nix store info
?).