feat: ✨ Implement azdo pipelines variable-groups list command - #149
Merged
Conversation
Add generated client and models for github.com/microsoft/azure-devops-go-api/azuredevops/v7/taskagent.
Add generated MockTaskAgentClient and wire TaskAgent into the mock client factory. Update the mock generation script to produce the new taskagent mock file so tests can stub TaskAgent API calls.
Add a raw REST client for the Azure DevOps variable groups endpoint to work around the SDK's mis-shaped response for variable groups.This enables listing variable groups (with continuation) reliably when the taskagent SDK wrapper is insufficient.
Introduce support for the Azure DevOps taskagent v7 client by: - adding the taskagent import and TaskAgent method to the ClientFactory - implementing TaskAgent in the client factory to create a taskagent client from a connection
Add a GetVariableGroups helper to internal/azdo/loader.go that uses the taskagent client to list all variable groups for a given project.
Add a new top-level `pipelines` command and a `variable-groups list` subcommand to list Azure DevOps variable groups for a project.
Add new documentation pages for the `azdo pipelines` command and the `azdo pipelines variable-groups` subcommands, including a detailed `list` command reference.
Clarify how commands should register and produce JSON output. Explicitly require the slice passed to util.AddJSONFlags to enumerate every JSON field (matching struct tag names) so consumers can filter reliably.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #121