Skip to content

Conversation

@tmeckel
Copy link
Owner

@tmeckel tmeckel commented Sep 30, 2025

Closes: #59

Added "l" as an alias for the project list command and "r" for the repo command to improve CLI usability and provide quicker access for frequent users. Updated help text in repo command to reflect new argument format including project name.
Added note specifying that `go.uber.org/mock/gomock` must be imported in all test files using mocks to ensure proper mock functionality and avoid missing import errors.
… mockgen command to generate the mock for the Azure DevOps Operations client. This is necessary to enable testing of the new polling functionality for long-running operations.
…he Azure DevOps Operations client. This mock is used to simulate API calls to the Operations endpoint for testing purposes, specifically for polling long-running operations.
…k for the ConnectionFactory interface to include the newly added Operations client. This ensures that tests can properly mock the ClientFactory's ability to provide an Operations client.
…s the Operations client to the ClientFactory interface, allowing other parts of the application to access the Azure DevOps Operations API for managing long-running operations.
…nts the Operations client in the ClientFactory, providing a concrete way to obtain an Operations client for interacting with the Azure DevOps Operations API.
…ling\n\nIntroduces PollOperationResultWithState, a new function that allows polling for a specific operation status. The existing PollOperationResult now calls this new function, making the polling logic more flexible and reusable.
…an issue where the 'omitempty' tag was not being respected in the custom JSON exporter when specific fields were requested. The structExportData function now correctly checks for omitempty and zero values in all serialization paths.
…the 'azdo project create' command with '--no-wait' to exit immediately after queuing, and '--max-wait' to set a custom polling timeout. Corrects the project retrieval logic after creation. Adds process template name and source control type to the output. Implements a unified JSON output structure. Improves the long description and examples for the command.
…n tests for the PollOperationResultWithState function, covering various success and failure scenarios with different target states. This ensures the robustness of the new polling logic.
…ensive negative test cases for the 'azdo project create' command, covering invalid inputs, API errors, and mutually exclusive flags. This improves the command's reliability and error handling.
…the documentation for the 'azdo project' command group to include the updated 'create' subcommand.
Document new 'azdo project create' command with flags and options to guide users in creating Azure DevOps projects, addressing feature request #59.
Refactored project name parsing by introducing `ProjectFromName` and `parseProjectName` for clarity. Added `ProjectFromURL` to support parsing Azure DevOps project URLs in both `dev.azure.com` and `visualstudio.com` formats, ensuring hostname validation. Updated repository parsing functions to use new internal helpers and improved error messages for hostname mismatches.
Added a new `create` subcommand to the project command for creating Azure DevOps projects. Updated usage examples to reflect default organization behavior, improved clarity, and added alias `p` for quicker access.
@tmeckel tmeckel merged commit 16a812e into master Sep 30, 2025
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue59 branch September 30, 2025 21:46
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 project create' command

1 participant