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

Find-PSResource without any parameters/inputs - expected behavior or incurring load on the gallery #302

Open
anamnavi opened this issue Nov 10, 2020 · 0 comments
Assignees

Comments

@anamnavi
Copy link
Collaborator

@anamnavi anamnavi commented Nov 10, 2020

With current implementation, running Find-PSResource without any parameters or other input from the user is allowable behavior. It queries for all non-prerelease, module type resources from the repository registered with highest priority ranking.

Creating this issue for further discussion on whether this is expected behavior or we should report an error message asking for more input with the cmdlet. One of the downsides of having this as allowable behavior is that this could put a large load performance wise on the gallery being queried. Additionally, such a large query could be made even if it wasn't the user's intention to run this command (i.e they may have hit enter before typing up the rest of the command). Steve had a suggestion to require '*' to signify it was a deliberate action. Currently, Find-PSResource '*' returns a single resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.