Skip to content

Add -v/--version for roam and --git-version for git - #8

Merged
nnutter merged 2 commits into
masterfrom
version
Sep 9, 2026
Merged

nnutter merged 2 commits into
masterfrom
version

Conversation

@nnutter

@nnutter nnutter commented Sep 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

Root uses DisableFlagParsing so cobra/fang cannot handle the version
flag. Intercept -v/--version like -h/--help and print the cobra-style
version string instead of passing it to git. The version defaults to
dev and can be overridden with -ldflags -X main.version=.
Since --version now prints the roam version, provide --git-version to
pass --version on to git for inspecting the underlying git version.
@nnutter
nnutter merged commit 40d843d into master Sep 9, 2026
3 checks passed
@nnutter
nnutter deleted the version branch September 9, 2026 13:14
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