Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions packages/loopover-miner/lib/portfolio-queue-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,6 @@ function parseRepoArg(value, usage) {
return { repoFullName: `${owner}/${repo}` };
}

function parseJsonFlag(args) {
const options = { json: false, dryRun: false };
const positional = [];

for (const token of args) {
if (token === "--json") {
options.json = true;
continue;
}
// #4847: reports what a real mutation would do and returns before opening the portfolio queue at all.
if (token === "--dry-run") {
options.dryRun = true;
continue;
}
if (token.startsWith("-")) {
return { error: `Unknown option: ${token}` };
}
positional.push(token);
}

return { positional, ...options };
}

export function parseQueueListArgs(args) {
const options = { json: false, repoFullName: null };
const positional = [];
Expand Down