NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.56k stars 1.45k forks source link

Shorten some subcommands of `nix` #9987

Open logicskky opened 5 months ago

logicskky commented 5 months ago

Problem: Some subcommands of nix are too long.

Solution: Apply widely-used abbreviations instead (like nix fmt). e.g.

For other subcommands which is long, I haven't come up with abbrs yet, but I hope they could been shortened.

logicskky commented 5 months ago

Beside the verbose above, the use of nix realisation instead of nix realization also seems weird to me.

I think convenience and consistency should both be emphasized when designing the CLI.

Qyriad commented 5 months ago

Note: "realisation" and "realise" are common accepted forms in UK English. See also "analyse", "recognise", etc, which are all common in UK (and Australian) English, and Nix's use of the -ise forms is generally consistent. I can only find one -ize form reference in the Nix manual: https://github.com/NixOS/nix/blob/d857914e1a41670893d6571726588659afe7b1e9/doc/manual/src/command-ref/nix-store/query.md?plain=1#L97

nix-store --realise and nix-store --realize are both accepted, however, the same should probably done for nix realisation

logicskky commented 5 months ago

Nix's use of the -ise forms is generally consistent.

I didn't realize it before. In this case, I don't think it weird anymore.