Skip to content

docs(examples): add example scripts for orcid-works-cli#8

Merged
hyperfinitism merged 1 commit intomainfrom
docs/examples-works-cli-scripts
Jul 24, 2025
Merged

docs(examples): add example scripts for orcid-works-cli#8
hyperfinitism merged 1 commit intomainfrom
docs/examples-works-cli-scripts

Conversation

@hyperfinitism
Copy link
Owner

Adds two example scripts (Bash & PowerShell) that demonstrate the delta‑fetch feature of orcid-works‑cli.

What's new

examples/orcid-works/test.sh

Bash script that

  1. fetches ORCID Works (Detail) and saves them as output.json;
  2. mutates the file with filter.jq;
  3. re-runs the CLI with and without the --force-fetch flag to compare diff‑fetch behaviour.

This script is based on the How to try it section in PR #3.

examples/orcid-works/test.ps1

Functionally identical PowerShell version of the script above.

examples/orcid-works/filter.jq

Re‑usable jq filter used to tweak the JSON between fetch runs.

@hyperfinitism hyperfinitism self-assigned this Jul 24, 2025
@hyperfinitism hyperfinitism merged commit d7b5729 into main Jul 24, 2025
7 checks passed
@hyperfinitism hyperfinitism added the documentation Improvements or additions to documentation label Jul 30, 2025
@hyperfinitism hyperfinitism deleted the docs/examples-works-cli-scripts branch October 3, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant