Repository navigation
feat: [#180] implement configure CLI command - #182
Merged
Merged
Conversation
- Add Configure variant to Commands enum - Create presentation layer controller in src/presentation/controllers/configure/ - Implement ConfigureSubcommandError with actionable help messages - Add router integration for configure command - Refactor ConfigureCommandHandler to build AnsibleClient internally - Update tests to match new dependency injection pattern - Verify full deployment workflow: create → provision → configure → destroy
Member
Author
|
ACK 1dbd0f6 |
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
Implements the CLI presentation layer for the
configurecommand, exposing the existingConfigureCommandHandlerapplication layer logic to end users. This enables users to transition deployment environments from "Provisioned" state to "Configured" state via the CLI interface.Closes #180
Changes
Presentation Layer
Configurevariant toCommandsenum insrc/presentation/input/cli/commands.rssrc/presentation/controllers/configure/:mod.rs- Module documentation and exportserrors.rs-ConfigureSubcommandErrorwith actionable.help()methodshandler.rs- Main controller with progress reportingtests/mod.rs- Integration testssrc/presentation/dispatch/router.rs)src/presentation/errors.rsApplication Layer Refactoring
ConfigureCommandHandlerto matchProvisionCommandHandlerpattern:ansible_clientfrom constructor parametersbuild_configuration_dependencies()method to createAnsibleClientinternallyTesting
Manual Testing Results
✅ Full deployment workflow tested successfully:
Known Issues
Issue #181: Hardcoded
ansible_userin inventory template"username": "torrust"in configurationAcceptance Criteria
All criteria from issue #180 met:
Functional Requirements:
torrust-tracker-deployer configure <name>command availableUser Experience:
.help()method--helpoutput--help configureCode Quality:
Testing:
Related