ni icon indicating copy to clipboard operation
ni copied to clipboard

Export command generators

Open Zeko369 opened this issue 1 year ago • 1 comments

Clear and concise description of the problem

Export i.e. yarnInstall(packages: string[]) which would generate yarn install foo, and a generic install(pm: PackageManager, packages: string [])

Suggested solution

Simply extract and export internal functionality

Alternative

No response

Additional context

No response

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Zeko369 avatar Apr 30 '23 21:04 Zeko369

Why u use install(pm: PackageManager, packages: string []) instead of ni packageA packageB...? The latter command is more concise.

HawtinZeng avatar Jan 06 '24 13:01 HawtinZeng