Skip to content

Add 'version' command - #428

Merged
nmattia merged 4 commits into
mainfrom
nm-show-version
Jul 18, 2026
Merged

Add 'version' command#428
nmattia merged 4 commits into
mainfrom
nm-show-version

Conversation

@nmattia

@nmattia nmattia commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Closes #269

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated version subcommand to the niv CLI to complement the existing --version flag, aligning the tool with common CLI user expectations (Issue #269).

Changes:

  • Add niv version command that prints the current package version.
  • Update README command list and add a changelog entry for the new command.
  • Minor flake.nix source filtering comment update.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/Niv/Cli.hs Adds the version subcommand and refactors CLI entrypoint argument handling.
app/Niv.hs Updates executable entrypoint to match the CLI entrypoint refactor.
README.md Documents the new version command in the commands list.
CHANGELOG.md Adds an entry noting the new niv version command.
flake.nix Adds an explanatory comment in the sdist/source allowlist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Niv/Cli.hs
Comment thread app/Niv.hs
Comment thread CHANGELOG.md Outdated
Comment thread flake.nix
@nmattia
nmattia merged commit b4f425b into main Jul 18, 2026
2 checks passed
@nmattia
nmattia deleted the nm-show-version branch July 18, 2026 12:49
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.

Add 'niv --version' and 'niv version'

2 participants