Skip to content

feat(progress): support plugin configuration - #4

Merged
natalie-o-perret merged 1 commit into
mainfrom
feat/progress-plugin-config
Sep 29, 2026
Merged

natalie-o-perret merged 1 commit into
mainfrom
feat/progress-plugin-config

Conversation

@natalie-o-perret

Copy link
Copy Markdown
Owner

Summary

  • read persistent progress-bar styling from plugins.progress in restish.json
  • keep RSH_PROGRESS_* variables as per-invocation overrides
  • validate configured widths, colours, and required glyphs

The JSON transport depends on rest-sh/restish#446. Older Restish versions continue to use defaults and environment variables.

Example

Given an endpoint returning:

{"label":"Deploy","state":"running","current":1,"total":2}

and this restish.json entry:

{"plugins":{"progress":{"width":4,"fill":"=","head":">","empty":".","start":"[","end":"]"}}}

Run:

RSH_CONFIG_DIR=/tmp/restish-config restish get http://127.0.0.1:18765/progress.json -o progress --rsh-print b

Before, the plugin ignored the JSON style:

50% ████████████░░░░░░░░░░░░  Deploy  1/2 steps  running

After:

50% [=>..]  Deploy  1/2 steps  running

Note

AI assistance: test scaffolding, documentation.

@natalie-o-perret
natalie-o-perret merged commit a84e7a5 into main Sep 29, 2026
24 checks passed
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