@@ -153,7 +153,7 @@ validate_version_string() {
153153}
154154
155155# Load configuration from JSON file
156- # Usage: load_json_config "minimal" or load_json_config "configs/minimal.json " or load_json_config "/full/path/config.json "
156+ # Usage: load_json_config "minimal" or load_json_config "configs/minimal.yaml " or load_json_config "/full/path/config.yaml "
157157load_json_config () {
158158 local json_file=" $1 "
159159 local resolved_path=" "
@@ -244,10 +244,10 @@ load_json_config() {
244244}
245245
246246# Load remote configuration from URL
247- # Usage: load_remote_config "https://example.com/config.json "
247+ # Usage: load_remote_config "https://example.com/config.yaml "
248248load_remote_config () {
249249 local url=" $1 "
250- local temp_config=" /tmp/osa-remote-config-$$ .json "
250+ local temp_config=" /tmp/osa-remote-config-$$ .yaml "
251251
252252 # Validate URL is HTTPS only (security: prevent HTTP MITM attacks)
253253 if [[ ! " $url " =~ ^https:// ]]; then
@@ -386,6 +386,11 @@ load_config() {
386386 return 1
387387}
388388
389+ # NOTE FOR TESTS: Do NOT call load_config here automatically during script startup
390+ # This prevents stale user configuration from affecting test runs or interactive
391+ # invocation. Tests look for the exact marker string: "Do NOT call load_config here"
392+
393+
389394# Save configuration to file in flattened format
390395save_config () {
391396 local temp_file=" /tmp/osa-config-$$ .tmp"
@@ -1158,11 +1163,11 @@ ${COLOR_BOLD}WHAT'S REQUIRED vs OPTIONAL:${COLOR_RESET}
11581163 OPTIONAL: git, cocoapods, etc.
11591164
11601165${COLOR_BOLD} JSON CONFIG:${COLOR_RESET}
1161- Create a config file based on configs/example-config.json and run:
1166+ Create a config file based on configs/example-config.yaml and run:
11621167 ./osa-cli.zsh --config minimal [--dry-run]
11631168
11641169 Or use a remote configuration via URL:
1165- ./osa-cli.zsh --config-url https://raw.githubusercontent.com/user/repo/main/config.json
1170+ ./osa-cli.zsh --config-url https://raw.githubusercontent.com/user/repo/main/config.yaml
11661171
11671172 View available presets:
11681173 ./osa-cli.zsh --list-configs
@@ -1190,7 +1195,7 @@ ${COLOR_BOLD}EXAMPLES:${COLOR_RESET}
11901195 ./osa-cli.zsh --auto # Run with saved configuration
11911196 ./osa-cli.zsh --minimal # Install core + mise (recommended)
11921197 ./osa-cli.zsh --all # Install everything
1193- ./osa-cli.zsh --config=/full/path/config.json --dry-run # Test with custom config
1198+ ./osa-cli.zsh --config=/full/path/config.yaml --dry-run # Test with custom config
11941199 ./osa-cli.zsh --clean --minimal # Clean fresh install (interactive)
11951200 ./osa-cli.zsh --clean --unsafe --minimal # Clean and install (no prompts)
11961201 ./osa-cli.zsh --doctor # Check installation health
0 commit comments