Skip to content

Show optional recipe options in the Moderne CLI run instructions - #553

Merged
timtebeek merged 1 commit into
masterfrom
tim/pr-matching-changes-options
Oct 9, 2026
Merged

timtebeek merged 1 commit into
masterfrom
tim/pr-matching-changes-options

Conversation

@timtebeek

@timtebeek timtebeek commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Recipe pages only show --recipe-option flags when a recipe has a required option, and then mix the optional examples into the command you need to run. Recipes with only optional options, like AddOciLabels, get a bare mod run. This brings over the change from moderneinc/moderne-docs#1052: RunRecipe takes a new optionalCliOptions prop. When it's set, the Moderne CLI tab keeps the plain run command and adds a second one, with each option on its own line and labelled as example values.

The generator side is openrewrite/rewrite-recipe-markdown-generator#389. This needs to merge first, or recipes with required options lose their optional examples from the run command at the next full regeneration. Until then, pages render exactly as before.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Oct 9, 2026
@timtebeek
timtebeek merged commit efe8401 into master Oct 9, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/pr-matching-changes-options branch October 9, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant