Repository navigation
Rename Application Commands to Command Handlers - #27
Merged
Merged
Conversation
- Renamed directory from `commands` to `command_handlers` - Renamed all command structs: DestroyCommand -> DestroyCommandHandler, etc. - Renamed all error types: DestroyCommandError -> DestroyCommandHandlerError, etc. - Updated all imports throughout the codebase - Updated all comments and documentation references - All tests and builds passing Co-authored-by: josecelano <[email protected]>
- Fixed all remaining comment references - Applied code formatting with cargo fmt - All linters passing Co-authored-by: josecelano <[email protected]>
Copilot
AI
changed the title
[WIP] Rename app commands to command handlers
Rename Application Commands to Command Handlers
Oct 22, 2025
josecelano
marked this pull request as ready for review
October 22, 2025 16:17
josecelano
approved these changes
Oct 22, 2025
Member
|
ACK 369ee07 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR refactors the terminology in the Application Layer to distinguish between UI commands (future Clap subcommands) and Application Layer command handlers (DDD business logic). This establishes clear separation as we introduce UI-level commands in the parent epic (#10 - UI Layer Destroy Command).
Problem Statement
Currently, both concepts are called "commands" which creates ambiguity:
destroy,provision)As we introduce Clap subcommands to the CLI, we need clear terminology to avoid confusion between the user-facing interface and the internal business logic layer.
Changes
Directory Structure
src/application/commands/→src/application/command_handlers/Core Components Renamed
All four command handlers were renamed consistently:
DestroyCommand→DestroyCommandHandlerProvisionCommand→ProvisionCommandHandlerConfigureCommand→ConfigureCommandHandlerTestCommand→TestCommandHandlerComprehensive Updates
*TestBuilder→*HandlerTestBuilder)Verification
All quality checks pass:
Impact
No functional changes - this is purely a naming refactoring to improve code clarity and prepare for future UI layer implementation.
Rationale
This change follows Domain-Driven Design naming conventions where:
This clear distinction will enable clean implementation of the UI layer in subsequent issues (#23 and beyond) while maintaining well-organized, maintainable code.
Related Issues
Original prompt
Fixes #22
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.