Skip to content

docs: README's query status exit codes omitted 3 (truncated preview) - #298

Merged
eddietejeda merged 1 commit into
mainfrom
docs/readme-accuracy
Sep 10, 2026
Merged

docs: README's query status exit codes omitted 3 (truncated preview)#298
eddietejeda merged 1 commit into
mainfrom
docs/readme-accuracy

Conversation

@eddietejeda

@eddietejeda eddietejeda commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

README accuracy audit against the clap/config source (same flow as hotdata-dev/hotdata-ibis#55).

  • query status exit codes: the README listed 0/1/2 as complete, but src/commands/query.rs also defines 3 (EXIT_INCOMPLETE_RESULT — query succeeded, printed result is a truncated preview). The section is pitched at script authors, so the missing code was a real trap. Added it.

Every command-table row, flag rename, env var, config path, and install step verified against source. Not verifiable from the repo: the "~150 API services" count (server-side).

The README presents the exit-code set as complete for scripting
(0 done / 1 failed / 2 running), but query.rs defines and documents a
fourth: EXIT_INCOMPLETE_RESULT = 3, returned when the query succeeded
and the printed result is an incomplete/truncated preview. A script
treating the listed set as exhaustive would misread 3.
@eddietejeda
eddietejeda requested a review from a team as a code owner September 10, 2026 03:05
@eddietejeda
eddietejeda requested review from anoop-narang and removed request for a team September 10, 2026 03:05

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the exit code claim against src/commands/query.rs. EXIT_INCOMPLETE_RESULT = 3 (line 57), query status reaches it through pollprint_resultresult_exit_code (lines 554, 679-682). The new README wording matches the QueryCommands::Status docstring at lines 13-16.

@eddietejeda
eddietejeda merged commit 35f7f20 into main Sep 10, 2026
13 checks passed
@eddietejeda
eddietejeda deleted the docs/readme-accuracy branch September 10, 2026 03:09
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant