Skip to content

Rename nix doctor to nix config check#9478

Merged
Ericson2314 merged 2 commits intoNixOS:masterfrom
tweag:nix-config-check
Dec 1, 2023
Merged

Rename nix doctor to nix config check#9478
Ericson2314 merged 2 commits intoNixOS:masterfrom
tweag:nix-config-check

Conversation

@thufschmitt
Copy link
Member

Motivation

Context

Fix #7672

Priorities

Add 👍 to pull requests you find important.

@github-actions github-actions bot added documentation new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority labels Nov 27, 2023
void run() override
{
if (!command)
throw UsageError("'nix config' requires a sub-command.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we show the equivalent of nix config --help here instead? Not necessarily blocking, but it could be a quick fix with a tangible UX impact, and also set a good example.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed what other commands are doing without thinking too much 😛

I think failing here is good (because I might accidentally write that in a script, and I'd be glad if Nix tells me that it's a mistake), but also showing the help (or at least the list of commands) could make a lot of sense

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can have an issue to factor this out :)

Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit about what in what file, otherwise good!

@Ericson2314 Ericson2314 changed the base branch from master to 2.19-maintenance December 1, 2023 15:17
@Ericson2314 Ericson2314 changed the base branch from 2.19-maintenance to master December 1, 2023 15:17
@github-actions github-actions bot removed documentation with-tests Issues related to testing. PRs with tests have some priority labels Dec 1, 2023
@Ericson2314 Ericson2314 merged commit ac4d2e7 into NixOS:master Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Move nix {show-config,doctor} under subcommands

4 participants