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

Addressing Issue #373 #377

Merged
merged 5 commits into from
Dec 6, 2020
Merged

Addressing Issue #373 #377

merged 5 commits into from
Dec 6, 2020

Conversation

DarqueWarrior
Copy link
Collaborator

PR Summary

Azure DevOps only returns 100 projects unless you override the top value. This PR allows you to set a default value of projects to return. This will allow tab completion and validation to work on all projects.

PR Checklist

Copy link
Collaborator

@SebastianSchuetze SebastianSchuetze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. Just one minor issue.

$dp = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary

# Only add these options on Windows Machines
if (_isOnWindows) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't you creating duplicate code here. the clear function has the same. Is it possible to group the dp creation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. It is actually in four places now. Let me see about refactoring this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code is much better now.

@DarqueWarrior DarqueWarrior merged commit 9f6808d into trunk Dec 6, 2020
@DarqueWarrior DarqueWarrior deleted the issue373 branch February 20, 2021 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants