Skip to content

Normalize body input around --body-file -#37

Merged
hex2dec merged 2 commits intomainfrom
feat/issue-33-normalize-body-input
Mar 20, 2026
Merged

Normalize body input around --body-file -#37
hex2dec merged 2 commits intomainfrom
feat/issue-33-normalize-body-input

Conversation

@hex2dec
Copy link
Copy Markdown
Owner

@hex2dec hex2dec commented Mar 20, 2026

Summary

  • normalize stdin body input around --body-file - for write commands
  • remove issue comment --body-stdin
  • add integration coverage for flag, file, stdin, and invalid body input combinations
  • update README examples for issue comments, PR comments, and PR create

Validation

  • cargo fmt -- --check
  • cargo test
  • cargo clippy --all-targets --all-features -- -D warnings

Examples

printf %s "Posted from stdin" | gitee issue comment I123 --repo octo/demo --body-file - --json
printf %sn "Generated from stdin" | gitee pr comment 42 --repo octo/demo --body-file - --json

Removed behavior

$ gitee issue comment I123 --repo octo/demo --body-stdin
unsupported command

Closes #33

@hex2dec hex2dec force-pushed the feat/issue-33-normalize-body-input branch from 80793bd to 0bade70 Compare March 20, 2026 10:04
@hex2dec hex2dec merged commit 1875e6d into main Mar 20, 2026
@hex2dec hex2dec deleted the feat/issue-33-normalize-body-input branch March 20, 2026 10:26
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.

Normalize body input around --body-file -

1 participant