Skip to content

Print the version with --version - #15

Merged
huacnlee merged 1 commit into
mainfrom
version-flag
Sep 28, 2026
Merged

huacnlee merged 1 commit into
mainfrom
version-flag

Conversation

@huacnlee

Copy link
Copy Markdown
Owner

Summary

omasend --version (or -V) now prints omasend <version> and exits without opening a window.

Package managers probe a binary this way. mise's registry CI requires a test entry for every new tool, so jdx/mise#13774 is blocked until omasend can answer it.

The check runs first in main(), before diagnostics, the Tokio runtime or GPUI start, so it also works on a headless machine.

Notes

On Windows the release build uses the GUI subsystem. Typed in an interactive console, the command prints nothing visible. Called by a tool that captures output through a pipe, as mise does, it works.

Test plan

  • cargo build
  • ./target/debug/omasend --version and -V print omasend 0.1.5 and open no window
  • cargo fmt --check

🤖 Generated with Claude Code

Package managers such as mise probe a binary with `omasend --version`.
Answer before any GUI setup, so the probe works on a headless machine
and no window opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@huacnlee
huacnlee merged commit e13dd50 into main Sep 28, 2026
3 checks passed
@huacnlee
huacnlee deleted the version-flag branch September 28, 2026 13:08
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