rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[rush] Expose Rush Command Line Parser via API

Open william2958 opened this issue 2 years ago • 0 comments

Summary

This MR introduces the RushCommandLineAPI class, which exposes the set of actions available from the rush command line and their corresponding parameter details through a getSpec static function. This allows us to expose rush's set of command line actions without directly exposing the RushCommandLineParser.

This is useful for other rush tools that may need to work with the available rush actions such as by displaying them through a GUI (such as in the rush vscode extension)

Details

How it was tested

Tested by comparing the output to the output generated by the RushCommandLineParser class.

Impacted documentation

william2958 avatar Aug 24 '23 22:08 william2958