feat: make log-format a setting

Vaguely one half of #186.
Fixes #827.

Change-Id: Ie6a296465beb089bf812ea27091648ca6a6a6964
This commit is contained in:
Qyriad
2026-01-06 16:35:49 +01:00
parent c3b70a8968
commit b97b2e858b
15 changed files with 115 additions and 32 deletions
+3 -3
View File
@@ -131,9 +131,9 @@ def test_completions_flake_update(nix: Nix, files: Path):
def test_flag_completion(nix: Nix):
nix.env["NIX_GET_COMPLETIONS"] = "2"
res = nix.nix(["build", "--log-form"]).run().ok()
assert "--log-format" in res.stdout_plain
assert "Set the format of log output; one of" in res.stdout_plain
res = nix.nix(["build", "--dry"]).run().ok()
assert "--dry-run" in res.stdout_plain
assert "Show what this command would do without doing it" in res.stdout_plain
def test_option_completion(nix: Nix):