Skip to content

Add --lineWrap option to action-io-generator - #86

Merged
snecklifter merged 1 commit into
mainfrom
action-io-generator-line-wrap
Jul 22, 2026
Merged

snecklifter merged 1 commit into
mainfrom
action-io-generator-line-wrap

Conversation

@snecklifter

Copy link
Copy Markdown
Contributor

Summary

  • Add --lineWrap / -l CLI option that word-wraps long description lines in generated JSDoc comments to a specified column width
  • Without the flag, output is unchanged (no wrapping)
  • Handles multiline descriptions, folded YAML strings, and single-line descriptions correctly

Example

npx action-io-generator -a action.yml -o src/generated/inputs-outputs.ts --lineWrap 100

Wraps description lines at 100 characters, accounting for the * JSDoc prefix.

Closes #61

Test plan

  • Lint passes
  • Compile passes
  • Bundle builds
  • CLI test passes (without --lineWrap, existing behavior unchanged)
  • Long descriptions wrap correctly at the specified width
  • Multiline YAML descriptions maintain proper * prefix on all lines
  • CI passes

🤖 Generated with Claude Code

Adds a --lineWrap / -l option that word-wraps long description lines in
generated JSDoc comments to a specified column width. Short lines and
multiline descriptions are handled correctly.

Without the flag, output is unchanged (no wrapping).

Closes #61

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@snecklifter
snecklifter merged commit 39815f4 into main Jul 22, 2026
10 checks passed
@snecklifter
snecklifter deleted the action-io-generator-line-wrap branch September 18, 2026 20:30
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.

[FEATURE] wrap output of action-io-generator if line exceeds a threshold

1 participant