-
-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
component/cliCLI tools relatedCLI tools relatedgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtype/featureRequests for new featuresRequests for new features
Milestone
Description
Summary
Implements multiple URLs support for -t
/--traverse
option in fedify lookup
.
Problem
fedify lookup --traverse
only fetches single collection url.
Proposed Solution
In line 278,
// FIXME: Implement -t, --traverse when multiple URLs are provided
if (command.urls.length < 1) {
printError(message`At least one URL or actor handle must be provided.`);
process.exit(1);
} else if (command.traverse && command.urls.length > 1) {
printError(
message`The -t/--traverse option cannot be used with multiple arguments.`,
);
process.exit(1);
}
modify this block to not to throw error when traverse option and multiple urls are given.
In line 390-474,
if (command.traverse) {
const url = command.urls[0];
let collection: APObject | null;
modify the block to fetch objects from each given urls.
Alternatives Considered
No response
Scope / Dependencies
packages/cli/src/lookup.ts
Metadata
Metadata
Assignees
Labels
component/cliCLI tools relatedCLI tools relatedgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtype/featureRequests for new featuresRequests for new features