Skip to content

Refactor publish arg parsing to use case-app#86

Merged
nafg merged 1 commit intomainfrom
feature/case-app-arg-parsing
Feb 2, 2026
Merged

Refactor publish arg parsing to use case-app#86
nafg merged 1 commit intomainfrom
feature/case-app-arg-parsing

Conversation

@nafg
Copy link
Contributor

@nafg nafg commented Feb 2, 2026

Summary

  • Replace brittle List(...) pattern matching in Publish.scala with case-app for CLI argument parsing
  • Adds --help support and proper error messages for invalid arguments
  • All existing --mode=value syntax continues to work unchanged

Test plan

  • bleep compile passes for both Scala 2.13 and 3
  • bleep run publish -- --help prints usage info
  • bleep run publish -- --mode=local publishes locally
  • bleep run publish -- --mode=sonatype-legacy parses correctly
  • bleep run publish (no args) defaults to sonatype-legacy
  • bleep run publish -- --mode=ossrh-staging parses correctly

🤖 Generated with Claude Code

Replace brittle List(...) pattern matching with case-app for proper
CLI parsing, help messages, and error reporting.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mergify
Copy link
Contributor

mergify bot commented Feb 2, 2026

🧪 CI Insights

Here's what we observed from your CI run for a66f790.

🟢 All jobs passed!

But CI Insights is watching 👀

@nafg nafg merged commit 7e9c6f5 into main Feb 2, 2026
3 checks passed
@nafg nafg deleted the feature/case-app-arg-parsing branch February 2, 2026 07:59
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