Skip to content

Conversation

@tmeckel
Copy link
Owner

@tmeckel tmeckel commented Dec 13, 2025

Add Variable Group Deletion Command

This pull request introduces a new azdo pipelines variable-group delete command with comprehensive support for variable group management, including unified lookup logic and documentation.

New Features

Variable Group Deletion

  • Add delete subcommand to azdo pipelines variable-group with support for:
    • Deleting groups by ID or name
    • Confirmation prompts with --yes flag bypass
    • Project reference validation and resolution
    • JSON output option for scripting
    • Short aliases (d, del, rm) for improved ergonomics

Refactoring

Variable Group Lookup

  • Unify variable group lookup logic to support both ID-based and name-based queries
  • Implement case-insensitive name matching with collision detection
  • Add consistent error reporting for missing or ambiguous resources
  • Validate project context for all requests

Closes: #123

Implement a single source of truth for resolving variable groups by supporting both ID-based and name-based queries. The solution normalizes input handling through:
- Numeric ID parsing with negative value rejection
- Case-insensitive name matching with collision detection
- Consistent error reporting for missing or ambiguous resources
- Project context validation for all requests
Add new `delete` subcommand to variable group management with support for:
- Deleting groups by ID or name
- Confirmation prompts with --yes flag
- Removing from specific projects or all assignments
- JSON output option
- Project reference validation and resolution
Add comprehensive documentation for the new `azdo pipelines variable-group delete` command including usage examples, options, aliases, and JSON fields. Update the help reference and command index to include the new subcommand.
@tmeckel tmeckel merged commit 95a85e1 into master Dec 13, 2025
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue123 branch December 13, 2025 21:35
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 delete command

2 participants