Skip to content

Develop#10

Merged
Clifftech123 merged 2 commits into
mainfrom
develop
May 24, 2026
Merged

Develop#10
Clifftech123 merged 2 commits into
mainfrom
develop

Conversation

@Clifftech123
Copy link
Copy Markdown
Owner

No description provided.

Added `System.CommandLine` package to enable command-line parsing.
Refactored `StartCommand` to a static class with a `Build` method
that supports a `--port` option and starts the AzLocal host process.
Replaced placeholder code in `Program.cs` with a functional CLI
setup, including a `RootCommand` and integration of `StartCommand`
and placeholders for additional commands.
Refactored the AzLocal CLI to improve maintainability and usability:
- Added `Build` methods for all commands (`start`, `stop`, `status`, `reset`, `trust-cert`, `wait`) to encapsulate logic.
- Introduced `TrustDevCert` in `CertificateHelper` for cross-platform HTTPS certificate management.
- Enhanced `StartCommand` with port validation, process checks, and support for both published binaries and development builds.
- Centralized default port configuration in `EmulatorDefaults`.
- Improved error handling and platform-specific logic for process and certificate management.
@Clifftech123 Clifftech123 merged commit b4b1d1b into main May 24, 2026
2 checks passed
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.

1 participant