Skip to content

Conversation

@tmeckel
Copy link
Owner

@tmeckel tmeckel commented Dec 11, 2025

Variable Groups Management Enhancement

This branch introduces a new azdo pipelines variable-group create subcommand to enable variable group creation via CLI, along with supporting infrastructure for secure input handling and improved debugging capabilities.

New Features

Variable Groups Management

  • Add azdo pipelines variable-group create subcommand
    • Create variable groups with configurable name, description, and variables
    • Support for both plaintext and secret variables
    • JSON and table output formats for consistent CLI experience

Secure Input Handling

  • Implement Secret method for hidden input prompts
    • Add secure password/secret input capability to prompter interface
    • Support masked input in interactive CLI sessions
    • Maintain backward compatibility with existing prompt methods

Testing & Infrastructure

  • Enhance test infrastructure
    • Add Secret method to fakePrompter for comprehensive testing
    • Extend mock prompter implementations to support secret input scenarios
    • Add test coverage for secure input handling in comment tests

Debugging & Observability

  • Improve endpoint lookup debugging
    • Add debug logging for service endpoint resolution
    • Include failed endpoints in search results for better troubleshooting
    • Maintain existing error handling while adding visibility

Documentation

  • Add command reference documentation
    • Generate comprehensive usage documentation for new create subcommand
    • Include examples and output format specifications
    • Maintain consistency with existing command documentation

Closes: #119

Add Secret to MockPrompter and its recorder to support hidden input
prompts in unit tests. Also add Secret helpers for acceptance tests:
- provide a no-op Secret on acceptance command context
- provide a stubPrompter Secret that errors to prevent interactive
  prompts during acceptance runs

This enables testing and mocking of secret/hidden input flows without
requiring interactive input.
The CLI now provides a `create` subcommand under `azdo pipelines variable-group` that allows provisioning a variable group within a project. It supports seeding both regular and secret variables, linking Azure Key Vault secrets,
sharing the group across additional projects, and optionally authorising
the group for all pipelines. JSON output can be emitted, and the command
is integrated into the variable‑group command tree.
@tmeckel tmeckel merged commit aa69ef0 into master Dec 11, 2025
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue119 branch December 11, 2025 23:16
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 create command

2 participants