Skip to content

3.6.0: add -V/--version flag - #85

Merged
jessesaga merged 3 commits into
masterfrom
feature/version-flag-3.6.0
Jun 12, 2026
Merged

3.6.0: add -V/--version flag#85
jessesaga merged 3 commits into
masterfrom
feature/version-flag-3.6.0

Conversation

@jessesaga

Copy link
Copy Markdown
Contributor

Summary

Completes the mirthsync 3.6.0 release. Adds a -V/--version CLI flag and bumps the project version to 3.6.0. The Windows --restrict-to-path (#82) / single-channel (#83) / --delete-orphaned fixes already landed via #84; this PR is the version flag + the coordinated version bump.

Changes

  • New -V/--version flag — prints the bare version and exits 0 (no --target/--server/auth required, like --help). The version is read from the uberjar MANIFEST (Leiningen-Project-Version) via a new mirthsync.version namespace — single source of truth; falls back to dev when run from source.
  • Version → 3.6.0 in project.clj, Makefile, README.md (version line, changelog, CLI help block), pkg/mirthsync.sh, pkg/mirthsync.bat, pkg/npm/package.json.
  • Unit test for the flag in test/mirthsync/cli_test.clj.

Notes

  • No on-disk format change — no path/separator/restrict/write-placement logic is touched, so users' files stay at the same paths on next pull.

jcdlbs added 3 commits June 11, 2026 15:45
Print the installed mirthsync version and exit 0, without requiring
--target/--server/authentication (short-circuits like --help).

The version is read from the uberjar's own MANIFEST.MF
(Leiningen-Project-Version, which Leiningen derives from project.clj),
so it is a single source of truth that cannot drift from the released
artifact; running from source reports "dev". Output is the bare version
on its own line for easy parsing (e.g. by the VS Code extension, which
previously could not determine the installed version).
3.6.0 ships the Windows --restrict-to-path spaces/separator fixes
(#82, #83), the --delete-orphaned capture fix, launcher quoting, and
the new --version flag. README changelog updated.
The help-output reproduction in the README was missing the new
--version flag (the live --help output already includes it, since it is
auto-generated from the options).
@jessesaga
jessesaga merged commit 1ee2e28 into master Jun 12, 2026
2 checks passed
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.

2 participants