knip icon indicating copy to clipboard operation
knip copied to clipboard

add --project and --entry flags

Open jake-stewart opened this issue 1 year ago • 2 comments

removes need for creating temporary knip.json

jake-stewart avatar Mar 26 '24 12:03 jake-stewart

There are default values for those options, Knip looks in package.json, and plugins look in more configuration files. Do you think there something common missing, or is it just for convenience?

In general I'm not after parity between CLI arguments and configuration file options, especially considering monorepos are supported as well (making CLI args cumbersome).

webpro avatar Mar 27 '24 05:03 webpro

@webpro i would find the flags useful for scriptability. i could install knip globally and use a wrapper script with the args i prefer. i would be able to use it on any project without having to create a temporary knip.json just to define entry point.

also, i would be able to set different entry points interactively to view different graphs. (i sometimes have multiple entry points)

jake-stewart avatar Mar 27 '24 11:03 jake-stewart

Going to close this issue. Once this would land, I feel like chances are the other configuration file options will be requested as CLI arguments as well. As said, in general I'm not after parity here.

webpro avatar Jun 15 '24 14:06 webpro