From 4ab0a1d6ffe9f42a302806ad970bed03a0e1fd86 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 9 May 2026 00:09:58 +0900 Subject: fix(config): align with Composer's ConfigCommand pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - A1: stub auth keys (bitbucket-oauth.X etc.) with actionable error - A2: audit.ignore / audit.ignore-abandoned writers with --json/--merge - A3: scripts.X writer (scalar vs array) and --unset support - A4: top-level --unset fallback for unknown single-segment keys - A5: bare --unset extra / suggest / audit support - A6/A13: disable-tls enable/disable user-visible messages - A7: editor fallback chain (editor/vim/vi/nano/pico/ed) - A8: --editor --auth opens auth.json - A9: silent exit 0 when no setting-key and no --list - A10: cache-files-maxsize regex validation - A11: cafile/capath existence check + "null" clearing - A14: merge_json_values object merge uses existing-wins (PHP `+`) - A16: repositories..url sub-path support - A17: wording "cannot" → "can not" to match Composer exactly - A19: add_repository normalizes assoc repos, injects name field, strips stale disable entries Co-Authored-By: Claude Sonnet 4.6 --- crates/mozart/tests/cli_config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/mozart/tests') diff --git a/crates/mozart/tests/cli_config.rs b/crates/mozart/tests/cli_config.rs index e433653..29d20ff 100644 --- a/crates/mozart/tests/cli_config.rs +++ b/crates/mozart/tests/cli_config.rs @@ -29,12 +29,14 @@ fn test_config_single_key() { } #[test] -fn test_config_no_key_fails() { +fn test_config_no_key_silent_success() { + // Mirrors Composer 220-223: no setting-key and no --list → silent exit 0 let project = common::copy_fixture_to_temp("minimal"); common::mozart_cmd() .arg("config") .arg("--working-dir") .arg(project.path()) .assert() - .failure(); + .success() + .stdout(""); } -- cgit v1.3.1