# Integrations overview

readerly works next to the tools a CLI already has. It doesn't parse your commands, run your tests or render Markdown. Each page here shows where it meets one of them, with examples that ran against the source.

- **[GitHub Actions](https://readerly.loadsheet.dev/integrations/github-actions).** Detects the runner from `GITHUB_ACTIONS`, prints `text`, and adds `::error` and `::warning` annotations on stderr, at most 10 of each.
- **[Argument parsers](https://readerly.loadsheet.dev/integrations/argument-parsers).** `readerFlags(argv)` takes the shared flags and leaves `rest` for `node:util` `parseArgs`, cac or your own parser.
- **[Testing your CLI](https://readerly.loadsheet.dev/integrations/testing).** A fake `Io` runs one command as a terminal, an agent, GitHub Actions and `--format json` in the same test file.
- **[Progress](https://readerly.loadsheet.dev/integrations/progress).** `out.progress(label)` draws a live bar on a terminal, prints a line every 5 seconds in CI and pipes, and prints nothing for agents and JSON.
- **[Markdown answers](https://readerly.loadsheet.dev/integrations/markdown-answers).** `out.write()` takes an answer the tool rendered itself, such as Markdown through `@comark/ansi` for a person and as is for everyone else.
- **[nostics](https://readerly.loadsheet.dev/integrations/nostics).** `nosticsReporter(out)` sends nostics diagnostics to `createOut` as records, without a dependency on nostics.

## Typical setups

- **A linter or checker.** `createOut` with `out.diagnostic()`, annotations on GitHub Actions, and goldens per reader in your tests.
- **A tool with subcommands.** cac or `parseArgs` for the commands, `readerFlags` first, and `process.exitCode = await command(argv)`.
- **A docs or explain command.** `out.write()` with Markdown, rendered only when `out.profile.format` is `text`.

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://readerly.loadsheet.dev/raw/integrations.md) (this page)
- [GitHub Actions](https://readerly.loadsheet.dev/raw/integrations/github-actions.md)
- [Argument parsers](https://readerly.loadsheet.dev/raw/integrations/argument-parsers.md)
- [Testing your CLI](https://readerly.loadsheet.dev/raw/integrations/testing.md)
- [Progress](https://readerly.loadsheet.dev/raw/integrations/progress.md)
- [Markdown answers](https://readerly.loadsheet.dev/raw/integrations/markdown-answers.md)
- [nostics](https://readerly.loadsheet.dev/raw/integrations/nostics.md)

Next: [GitHub Actions](https://readerly.loadsheet.dev/raw/integrations/github-actions.md)

All pages: [llms.txt](https://readerly.loadsheet.dev/llms.txt)
