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

Get-Dba* Wildcard Support #9573

Open
mattcargile opened this issue Jan 7, 2025 · 1 comment
Open

Get-Dba* Wildcard Support #9573

mattcargile opened this issue Jan 7, 2025 · 1 comment
Labels
feature triage required New issue that has not been reviewed by maintainers

Comments

@mattcargile
Copy link
Contributor

Summarize Functionality

I am of the opinion that all the applicable Get-Dba* commands should support wildcards much like the greater core pwsh cmdlets like Get-Service or Get-Process. So Get-DbaDatabase -Database Name* or Get-DbaAgentJob -JobName Name*.

This is admittedly more hits a more interactive userbase. I've come to use dbatools more and more versus SSMS . So I have lots of aliases and such and so it would be handy. I know there is alot tab completion on many of the commands like -Database though it can lag a bit.

Is there a command that is similiar or close to what you are looking for?

Yes

Technical Details

Many of the cmdlets probably use -in so it would just be converting to a loop or the like and using -like.

@mattcargile mattcargile added feature triage required New issue that has not been reviewed by maintainers labels Jan 7, 2025
@niphlod
Copy link
Contributor

niphlod commented Jan 8, 2025

First step is a list of "tuples" functionname-parametername, then for each start a small "poll" about it being useful or not, and then go ahead and implement them. If logic stays the same an utility function should ideally be created.
BTW, for the examples mentioned (db name and job name) I'm up for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature triage required New issue that has not been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants