Skip to content

Fix usage metadata in hello plugin examples#7174

Open
fallintoplace wants to merge 1 commit into
yarnpkg:masterfrom
fallintoplace:fix-hello-plugin-usage-metadata
Open

Fix usage metadata in hello plugin examples#7174
fallintoplace wants to merge 1 commit into
yarnpkg:masterfrom
fallintoplace:fix-hello-plugin-usage-metadata

Conversation

@fallintoplace
Copy link
Copy Markdown

Summary

Fix the example hello-world plugins so their Clipanion usage metadata is attached to the expected static field.

Root cause

Both example commands used static usageusage = Command.Usage(...) instead of static usage = Command.Usage(...), so Clipanion never reads the intended help metadata.

Fix

  • rename usageusage to usage in scripts/plugin-hello-world.js
  • rename usageusage to usage in scripts/plugin-hello-universe.js

Verification

  • confirmed the typo was present in both files and nowhere else in these examples
  • confirmed the resulting diff is only the two field renames

@fallintoplace fallintoplace marked this pull request as ready for review June 3, 2026 21:42
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