nstaldev/nstal

Dynamic commands

Opened this issue · 0 comments

Related to #8.

Some commands depend on the context.

For example, an NPMJS package can be installed with npm or yarn. Therefore, the InstallPackage action of a static nstaller should say:

Install abc:

npm install abc
or
yarn add abc

But as soon as the nstaller is connected, it can guess the package manager in use. When this happens, the action should only display the correct message (in this example, the nstal CLI was run in a Yarn-managed project):

Install abc:

yarn add abc