Skip to content

feat(tool): Add --version flag to CLI#71

Merged
SakuraIsayeki merged 1 commit intodevelopfrom
copilot/add-version-command-cli-tool
Apr 10, 2026
Merged

feat(tool): Add --version flag to CLI#71
SakuraIsayeki merged 1 commit intodevelopfrom
copilot/add-version-command-cli-tool

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

The moltenobsidian CLI had no way to report its own version.

Changes

  • Program.cs: Calls config.SetApplicationVersion() via Spectre.Console.Cli's built-in version support, reading the version string from AssemblyInformationalVersionAttribute (populated at build time by Nerdbank.GitVersioning). The lambda remains static by resolving the attribute inline.
$ moltenobsidian --version
1.0.0+1c3aa6bcbf

Agent-Logs-Url: https://github.com/Nodsoft/MoltenObsidian/sessions/ef3b4097-91b7-4dd5-b604-764a092c865d

Co-authored-by: SakuraIsayeki <4705518+SakuraIsayeki@users.noreply.github.com>
@SakuraIsayeki SakuraIsayeki marked this pull request as ready for review April 10, 2026 21:20
@SakuraIsayeki SakuraIsayeki merged commit a3f5f64 into develop Apr 10, 2026
6 checks passed
@SakuraIsayeki SakuraIsayeki deleted the copilot/add-version-command-cli-tool branch April 10, 2026 21:31
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