Skip to content
Current release v0.0.2Release notesGitHub

Scripts and CI

pkgr is an interactive tool. Without a terminal there is nothing to pick from, so it does the next most useful thing.

If stdin or stdout is not a terminal (a pipe, a file, a CI runner), pkgr prints what is available and exits with code 1:

pkgr output when piped

The output goes to stderr and shows the command that each task would run. It is a quick way to see what a project offers.

In automation, call your package manager directly (pnpm run build). pkgr exists to save typing and memory at a human keyboard, not to replace a build script.

Code Meaning
the task’s own code the task ran; pkgr passes its exit code through
0 -version or -h
1 usage error, unreadable or invalid manifest, no terminal, or the task could not be started
130 you cancelled at the picker

Because pkgr returns the task’s own code, you can chain it:

Terminal window
pkgr && echo "task succeeded"

Support the project: Buy Me a Coffee or GitHub Sponsors.