Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add flag to show agent versions #169

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

Dimava
Copy link
Contributor

@Dimava Dimava commented Aug 28, 2023

Description

This PR adds ni -V flag which shows agent and node versions additionally to ni version

PS D:\repos\ni> ni -V
@antfu/ni v0.21.6
node      v20.5.1
pnpm      v8.6.12
npm -g    v9.8.0

Why

I wanted so see the agent and node versions, same as tsx does with node version

PS D:\repos\ni> tsx -v
tsx v3.12.7
node v20.5.1

Linked Issues

none

Additional context

  • not sure about flag name
  • maybe a long flag name alternative is required
  • this was not added to just --version because it has another format and takes a few second to run,
  • maybe add versions of something else? (likely out-of-scope)
  • I've made text appear in columns because I like it, but you may close to remove it
  • edit: config file location also can be useful as well

@antfu antfu merged commit 3566e43 into antfu-collective:main Sep 1, 2023
0 of 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.

None yet

2 participants