mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 00:05:11 -04:00
Start merge tabs
This commit is contained in:
parent
c9d9730726
commit
29b5042872
1 changed files with 16 additions and 0 deletions
|
@ -423,6 +423,22 @@ class TabWaiter {
|
||||||
this.updateTabProgress(inputNum, progress, total, "output");
|
this.updateTabProgress(inputNum, progress, total, "output");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Merge selected inputs into a single input
|
||||||
|
* @param {Array[number]} inputNums - list of input indices to merge
|
||||||
|
* @param {string} inputDelimeter - character to delimit the input merge
|
||||||
|
* @param {boolean} keepInputs - whether to persist inputs used in merge
|
||||||
|
*/
|
||||||
|
async mergeTabs(inputNums, inputDelimeter, keepOld) {
|
||||||
|
if (inputNums.length <= 1) {
|
||||||
|
throw new Error("Cannot merge a single tab.");
|
||||||
|
}
|
||||||
|
const allInputData = await Promise.all(inputNums.map(this.manager.input.getInputValue));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default TabWaiter;
|
export default TabWaiter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue