Skip to content

Conversation

@tmeckel
Copy link
Owner

@tmeckel tmeckel commented Dec 7, 2025

Service Endpoint Creation from File

This branch implements the ability to create Azure DevOps service endpoints from JSON definition files, with support for multiple text encodings and improved project resolution.

New Features

Service Endpoint Creation from File

  • Implement create from file functionality for service endpoints
    • Add support for reading JSON definition files from disk or stdin
    • Implement encoding detection and validation for UTF-8, ASCII, UTF-16BE/LE
    • Add JSON payload parsing and validation
    • Implement project scope resolution
    • Add progress indication during creation
    • Support output formatting options (table/JSON)
    • Add comprehensive error handling for file operations and API calls

Refactoring

Code Organization

  • Extract project resolution logic to shared package
    • Move resolveProjectReference function from create command to shared location
    • Enable reuse across service endpoint commands
    • Reduce code duplication and improve maintainability

Testing

Test Coverage

  • Add comprehensive encoding tests for create service endpoint command
    • Test UTF-8, ASCII, and UTF-16 encoding scenarios
    • Validate error handling for malformed input
    • Test file input and stdin scenarios
    • Verify JSON parsing and validation

Closes: #63

Move `resolveProjectReference` function from create command to a shared package to enable reuse across service endpoint commands. This reduces code duplication and improves maintainability.
Add support for creating service endpoints from JSON definition files with configurable encoding (UTF-8, ASCII, UTF-16BE/LE). The implementation includes:

- File input handling with stdin support
- Multiple encoding detection and validation
- JSON payload parsing and validation
- Project scope resolution
- Progress indication during creation
- Output formatting options
- Comprehensive error handling
@tmeckel tmeckel merged commit a23f5ca into master Dec 7, 2025
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue63 branch December 7, 2025 21:24
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 service-endpoint create command

2 participants