{"record":{"id":"7f47fb7e22b1023b","repo":"ramensoftware/windhawk","slug":"apply-the-archived-windhawk-app-settings","errorCode":null,"errorMessage":"  - apply the archived Windhawk app settings","messagePattern":"  - apply the archived Windhawk app settings","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"src/windhawk-core/cli/src/commands/data.rs","lineNumber":203,"sourceCode":"        ModScope::Keyword(ModScopeKeyword::AllExceptLocal) => {\n            all().filter(|id| !is_local_id(id)).collect()\n        }\n        ModScope::Keyword(ModScopeKeyword::All) => all().collect(),\n    }\n}\n\n/// Print the planned import actions to stderr, so a run without `--yes` shows\n/// what it would do before refusing (exit 2).\nfn print_import_plan(\n    env: &Environment,\n    manifest: &UserDataManifest,\n    selection: &UserDataSelection,\n) {\n    let scope = import_scope_ids(manifest, &selection.mods);\n    env.logger.warn(\"data import would (with --yes):\");\n    if selection.app_settings && manifest.has_app_settings {\n        env.logger\n            .warn(\"  - apply the archived Windhawk app settings\");\n    }\n    env.logger\n        .warn(&format!(\"  - import {} mod(s):\", scope.len()));\n    for m in &manifest.mods {\n        if scope.contains(&m.mod_id) {\n            env.logger\n                .warn(&format!(\"      {} {}\", m.mod_id, m.version));\n        }\n    }\n}\n\n/// Render a core import-progress event on stderr (via the logger, so `--quiet`\n/// suppresses the informational lines but keeps failure warnings). A stamped\n/// `compileTarget` event names the mod being compiled; the per-mod\n/// `ImportProgress` markers report the start and terminal outcome of each mod.\nfn report_import_progress(logger: Logger, event: &OperationEvent) {\n    let OperationEvent::Progress { payload } = event else {\n        return;","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/ramensoftware/windhawk/blob/61d99ed8e182e1af1b60109612b6763ad1b4b74e/src/windhawk-core/cli/src/commands/data.rs#L185-L221","documentation":"One line of the `data import` dry-run plan: '  - apply the archived Windhawk app settings'. It is printed when the selection includes app settings and the archive actually contains them, telling the user that global Windhawk settings will be overwritten on the real run.","triggerScenarios":"Running `data import` without `--yes` on an archive whose appSettings are present, with app settings enabled in the selection (default or via flags).","commonSituations":"Users restoring a full backup and reviewing exactly what will be touched before committing; scripts diffing dry-run output before automating with `--yes`.","solutions":["This is informational only; add `--yes` to proceed with the import","Exclude app settings from the selection if you do not want them applied","Compare current app settings with the archive first if the overwrite is a concern"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if wants_app_settings_import && archive_has_app_settings { confirm_overwrite(); }","typeGuard":null,"tryCatchPattern":"null","preventionTips":["Backup current app settings before a --yes import","Use selection flags to exclude app settings if not wanted"],"tags":["cli","import","dry-run"],"backgroundTag":"missing-required-flag","analyzedSha":"61d99ed8e182e1af1b60109612b6763ad1b4b74e","analyzedAt":"2026-09-12T14:02:41.115Z","contentChangedAt":"2026-09-12T14:02:41.115Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}