Skip to content

Conversation

@tmeckel
Copy link
Owner

@tmeckel tmeckel commented Dec 18, 2025

This Pull Request introduces a new command to update variable groups in the Azure DevOps CLI. It adds the core functionality, associated tests, and comprehensive documentation for the variable group update feature.

Detailed Breakdown

New Features: Variable Group Update Command

  • Implement the variablegroup update command to allow users to modify existing variable groups.
  • Add integration tests to ensure the update command functions correctly and handles edge cases.
  • Provide detailed documentation for the variable group update command, including usage examples and flag descriptions.

Technical Context

  • No new external dependencies or version requirements introduced.
  • No database migrations or schema changes.
  • No configuration updates required.
  • Testing coverage is enhanced with new tests specifically targeting the variable group update functionality.

Impact Assessment

  • Changes affect the Azure DevOps CLI's variable group management commands only.
  • Backward-compatible addition with no breaking changes to existing commands or features.

Closes: #122

Add a new "update" subcommand to manage variable group metadata,
cross-project sharing, and pipeline authorization. The command
supports updating name, description, type, providerData (raw JSON
or clear), project references (repeatable) and toggling
"authorize for all pipelines". It validates mutually exclusive
flags (provider-data-json vs clear-provider-data) and requires at
least one mutating flag. The implementation uses TaskAgent's
UpdateVariableGroup and PipelinePermissions APIs and supports
optional JSON/exporter output.
Add comprehensive tests for the variable group update command. Covers success cases (name and description update, authorize only, clear project references), validation error scenarios (mutually exclusive provider data flags, missing mutating flag, invalid provider JSON), variable group not found, and authorization failure. Tests use gomock-based mocks for TaskAgent and PipelinePermissions clients to assert API interactions and CLI output/error handling.
Add comprehensive documentation for the new `azdo pipelines variable-group update` command.
@tmeckel tmeckel merged commit bb1ffaa into master Dec 18, 2025
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue122 branch December 18, 2025 17:23
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.

feat: Implement azdo pipelines variable-group update command

2 participants