Skip to content

Move nix {show-config,doctor} under subcommands #7672

@roberth

Description

@roberth

Is your feature request related to a problem? Please describe.

Keeping the number of top level commands low helps with discoverability.
2/3 suggestions also make the CLI more noun-verb

Describe the solution you'd like

Move

  • nix show-config -> nix config show
  • nix doctor -> nix config check
  • nix describe-stores -> nix config show-store-types (as permitted by the insight that build configuration is also configuration)
  • nix describe-stores -> nix help stores
    • render it for the terminal?
    • make it internal?

nix doctor should remain as a hidden alias, it being a stable command.

Describe alternatives you've considered

Status quo; 30 top level commands instead of 28

Additional context

Docker has 58 top level commands, which is definitely too much from what I remember when learning (and probably fewer commands back then). Some may be aliases, but that's not clear during bash completion.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliThe old and/or new command line interfacefeatureFeature request or proposalidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.new-cliRelating to the "nix" command

    Type

    No type

    Projects

    Status

    Done

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions