MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / fillTextareaWithS3RmCommands

Function fillTextareaWithS3RmCommands

codeclash/viewer/static/js/picker.js:294–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292}
293
294function fillTextareaWithS3RmCommands() {
295 const selectedCheckboxes = getVisibleCheckedCheckboxes();
296
297 if (selectedCheckboxes.length === 0) {
298 showModalWarning(
299 "No folders selected. Please select folders from the table first.",
300 );
301 document.getElementById("bulk-actions-textarea").value = "";
302 return;
303 }
304
305 hideModalWarning();
306 const paths = Array.from(selectedCheckboxes).map((checkbox) =>
307 checkbox.getAttribute("data-path"),
308 );
309
310 const commands = paths.map((path) => {
311 const encodedPath = path.replace(/\\/g, "/");
312 return `aws s3 rm s3://codeclash/logs/${encodedPath}/ --recursive`;
313 });
314
315 document.getElementById("bulk-actions-textarea").value = commands.join("\n");
316}
317
318function fillTextareaWithAWSResubmitCommands() {
319 const selectedCheckboxes = getVisibleCheckedCheckboxes();

Callers

nothing calls this directly

Calls 3

showModalWarningFunction · 0.85
hideModalWarningFunction · 0.85

Tested by

no test coverage detected