3.6.0: add -V/--version flag - #85
Merged
Merged
Conversation
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).
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the mirthsync 3.6.0 release. Adds a
-V/--versionCLI flag and bumps the project version to 3.6.0. The Windows--restrict-to-path(#82) / single-channel (#83) /--delete-orphanedfixes already landed via #84; this PR is the version flag + the coordinated version bump.Changes
-V/--versionflag — prints the bare version and exits 0 (no--target/--server/auth required, like--help). The version is read from the uberjarMANIFEST(Leiningen-Project-Version) via a newmirthsync.versionnamespace — single source of truth; falls back todevwhen run from source.project.clj,Makefile,README.md(version line, changelog, CLI help block),pkg/mirthsync.sh,pkg/mirthsync.bat,pkg/npm/package.json.test/mirthsync/cli_test.clj.Notes