Doist / Doist/outline-cli

feat: Add --all flag for automatic pagination

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
19
Forks
1
Avg merge
6h 3m
Merged PRs (30d)
33

Description

Summary

Add --all flag to list commands that automatically fetches all pages.

Details

Currently users must manually increment --offset to paginate through results. Add an --all flag that loops through pages until pagination.nextPath is null.

Example

# Fetch all documents automatically
outline document list --all

Effort

1 day

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the list command implementations and existing --offset pagination handling, then trace how pagination.nextPath is exposed. Done means --all fetches successive pages until pagination.nextPath is null, as in the document list example.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.