feat: ✨ Implemented azdo pipelines variable-groups variable list command - #150
Merged
Conversation
Move Target parsing logic from security/group/shared to util/scope and introduce ParseTarget and ParseTargetWithDefaultOrganization helpers. Also replace usage of FlagErrorf with fmt.Errorf in ParseScope and related functions to decouple parsing logic from CLI flag error helpers.
Calls to shared.ParseTarget/ParseTargetWithDefault were swapped for util.ParseTarget and util.ParseTargetWithDefaultOrganization, and code now references target.Target instead of target.GroupName.
Add a VariableValue struct and two helper functions:
ToVariableValues converts a raw map[string]interface{} of variable
data into a slice of VariableValue, extracting value and secret flag.
FromVariableValues converts a slice of VariableValue back into the
map form expected by the API.
Add a new subcommand to manage variables within pipeline variable groups. Introduces "azdo pipelines variable-groups variable list" to list variables by variable group ID or name within a project (optionally prefixed by organization).
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: #125