This PR fixes ni -vnot showing yarn@berry version due to passing yarn@berry as executable name.
With this commit getCommand is used to determine proper agent executable (node is handled separately.)
Linked Issues
169
Additional context
This PR also adds --version flag alias and a tip in separate commits, those commits may be safely dropped/reverted if they are not needed.
Description
This PR fixes
ni -v
not showingyarn@berry
version due to passingyarn@berry
as executable name.With this commit
getCommand
is used to determine proper agent executable (node
is handled separately.)Linked Issues
169
Additional context
This PR also adds
--version
flag alias and a tip in separate commits, those commits may be safely dropped/reverted if they are not needed.