Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --project and --entry flags #573

Open
jake-stewart opened this issue Mar 26, 2024 · 2 comments
Open

add --project and --entry flags #573

jake-stewart opened this issue Mar 26, 2024 · 2 comments
Labels
feature request Feature request

Comments

@jake-stewart
Copy link

removes need for creating temporary knip.json

@jake-stewart jake-stewart added the feature request Feature request label Mar 26, 2024
@webpro
Copy link
Owner

webpro commented Mar 27, 2024

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).

@jake-stewart
Copy link
Author

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants