microsoft/rushstack

[rush] Allow custom commands with pass-through parameters

Faithfinder opened this issue · 5 comments

I'm trying to integrate knip in our rush repo, and while it's mostly going fine, the custom command I'm using to invoke it is just knip. I would like to be able to pass in any of knip's CLI arguments to it when I invoke, and listing them manually seems like a crazy exercise.

It'd be possible to add an option in command-line.json to allow "remainder" parameters to be passed to a bulk process. ts-command-line supports this, but it isn't exposed in Rush.

Would you be interested in adding this feature?

Meh, maybe. I have very little time/energy to spend on open source, but inspiration could struck and this sounds like it wouldn't take more than an hour. Can you point to a good file to start with for me or whoever takes this?

(BTW, the command is global, not bulk, but I imagine it can be implemented and useful for both)