Skip to content

feat: aem content#2689

Draft
kptdobe wants to merge 7 commits intomainfrom
aem-content
Draft

feat: aem content#2689
kptdobe wants to merge 7 commits intomainfrom
aem-content

Conversation

@kptdobe
Copy link
Contributor

@kptdobe kptdobe commented Mar 19, 2026

Allows to locally checkout the project content, make modifications, push back and serve locally. Useful for bulk editing.

Implement:

  • aem content clone: clone the da.live content of the project inside the aem-content folder (i.e. download locally)
  • aem content status: show the locally modified files
  • aem content push: pushes locally modified files to the server (i.e. upload to server)
  • aem content diff: compares the locally modified files with the ones on the server
  • aem content merge: merges locally the locally modified files and the ones on the server
  • if aem-content folder is present, aem up serves content first from here (and injects head.html)

@kptdobe kptdobe changed the title Aem content feat: aem content Mar 19, 2026
@github-actions
Copy link

This PR will trigger a minor release when merged.

return;
}
// eslint-disable-next-line no-await-in-loop
results[i] = await mapper(array[i], i);

Check warning

Code scanning / CodeQL

Superfluous trailing arguments Warning

Superfluous argument passed to
anonymous function
.

Copilot Autofix

AI about 11 hours ago

In general, this issue is fixed either by removing the unnecessary extra arguments from the call, or by updating the callee to declare and use those arguments. Here, the mapper function at line 198 only expects a single parameter (file) and does not use arguments, so the cleanest fix without changing behavior is to change mapWithConcurrency so that it only passes a single argument to mapper.

Concretely, in src/content/clone.cmd.js, inside mapWithConcurrency at line 53, change mapper(array[i], i) to mapper(array[i]). This ensures that all mappers receive only the element value, matching the existing call site at line 198. No additional imports, methods, or definitions are required; we are only changing the argument list of the mapper invocation.


Suggested changeset 1
src/content/clone.cmd.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/src/content/clone.cmd.js b/src/content/clone.cmd.js
--- a/src/content/clone.cmd.js
+++ b/src/content/clone.cmd.js
@@ -50,7 +50,7 @@
         return;
       }
       // eslint-disable-next-line no-await-in-loop
-      results[i] = await mapper(array[i], i);
+      results[i] = await mapper(array[i]);
     }
   }
   const pool = Math.min(limit, array.length);
EOF
@@ -50,7 +50,7 @@
return;
}
// eslint-disable-next-line no-await-in-loop
results[i] = await mapper(array[i], i);
results[i] = await mapper(array[i]);
}
}
const pool = Math.min(limit, array.length);
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants