Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
With current implementation, running
Find-PSResourcewithout 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.