Skip to content

docs: update user documentation for destroy command - #33

Merged
josecelano merged 3 commits into
mainfrom
copilot/add-user-documentation-for-destroy-command
Oct 25, 2025
Merged

josecelano merged 3 commits into
mainfrom
copilot/add-user-documentation-for-destroy-command

Conversation

Copilot AI commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Overview

Updates the user-facing documentation for the destroy command to reflect the actual CLI implementation completed in #23. Removes references to unimplemented commands and corrects command syntax and options to match the live implementation.

Changes

Documentation Updates

docs/user-guide/commands/destroy.md

  • Removed implementation status warning indicating CLI was not yet available
  • Updated command syntax from <ENVIRONMENT_NAME> to <ENVIRONMENT> to match actual CLI
  • Corrected logging options to reflect split flags:
    • --log-file-format (default: compact, no ANSI codes)
    • --log-stderr-format (default: pretty, with ANSI codes)
  • Added missing --log-dir option documentation
  • Removed all "Planned CLI usage (not yet available)" comments from code examples
  • Removed references to unimplemented commands (provision, configure, list)
  • Simplified comments about unimplemented features for clarity

docs/user-guide/commands.md

  • Updated implementation status to show destroy command is ✅ Fully Implemented
  • Reorganized command listing to clearly distinguish available vs. planned commands
  • Updated common options section to match actual CLI flags
  • Simplified examples to focus on implemented functionality

Code Updates

src/presentation/cli/commands.rs

  • Removed reference to unimplemented list command from CLI help text
  • Simplified environment argument description

Verification

All changes have been verified:

  • ✅ All linters pass (markdown, yaml, toml, cspell, clippy, rustfmt, shellcheck)
  • ✅ All unit tests pass (873 tests)
  • ✅ CLI help output matches documented behavior
  • ✅ Net code reduction of 24 lines (more concise)

Related Issues

Original prompt

This section details on the original issue you should resolve

<issue_title>Add User Documentation</issue_title>
<issue_description># Add User Documentation

Type: Task
Priority: High
Parent Epic: #10 - UI Layer Destroy Command
Estimated Effort: 2-3 hours


📋 Issue Overview

Create comprehensive user-facing documentation for the destroy command. Update existing documentation to reflect the implemented CLI interface and remove references to unimplemented features.

🎯 Problem Statement

The current user documentation at docs/user-guide/commands/destroy.md contains placeholder content and references to unimplemented commands (provision, list). After implementing the destroy CLI command (Issue #23), we need to:

  1. Update documentation to match the actual implementation
  2. Remove references to unimplemented commands
  3. Provide comprehensive usage guidance
  4. Add troubleshooting information

🎯 Goals

  • Update existing user documentation to reflect actual destroy command implementation
  • Remove references to unimplemented commands (provision, list)
  • Document command usage and examples
  • Document available flags and options
  • Add comprehensive troubleshooting section
  • Document safety considerations

📦 Scope

Primary File to Update

  • docs/user-guide/commands/destroy.md - Main destroy command documentation

Content Areas

  1. Command Synopsis: Exact syntax and parameters
  2. Usage Examples: Common scenarios and use cases
  3. Output Examples: What users should expect to see
  4. Error Handling: Common errors and how to resolve them
  5. Safety Considerations: Warnings about destructive operations
  6. Troubleshooting: Step-by-step problem resolution

Remove Unimplemented References

Clean up any mentions of:

  • torrust-tracker-deployer provision (not implemented)
  • torrust-tracker-deployer list (not implemented)
  • Advanced flags not implemented in MVP (--force, --yes)

✅ Acceptance Criteria

Documentation Requirements

  • docs/user-guide/commands/destroy.md updated with actual implementation details
  • All references to unimplemented commands removed
  • Command syntax documented accurately
  • Usage examples provided for common scenarios
  • Expected output examples included
  • Error messages and troubleshooting section added
  • Safety considerations and warnings documented
  • Prerequisites and dependencies clearly stated

Content Quality

  • All markdown linting passes successfully
  • Documentation follows project style guidelines
  • Examples are tested and accurate
  • Troubleshooting steps are actionable
  • Cross-references to related documentation included

Example Content Structure

# Destroy Command

## Synopsis
torrust-tracker-deployer destroy <ENVIRONMENT_NAME>

## Description
Completely destroys a deployment environment...

## Examples
...

## Troubleshooting
...

## Safety Considerations
...

Testing Requirements

  • All command examples in documentation are tested and work
  • Error scenarios documented are reproducible
  • Troubleshooting steps verified to resolve issues
  • Documentation reviewed for accuracy and completeness

🔍 Implementation Approach

  1. Review Current Documentation: Audit existing destroy.md content
  2. Test Actual Implementation: Use destroy command (from Issue Add Clap Subcommand Configuration #23) to verify behavior
  3. Document Real Usage: Replace placeholder content with actual examples
  4. Clean Up References: Remove unimplemented command mentions
  5. Add Troubleshooting: Based on common issues and error patterns
  6. Review and Polish: Ensure clarity and completeness

🔗 Related Issues

📚 Related Documentation


Full specification: See docs/issues/add-user-documentation.md</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add user documentation for destroy command docs: update user documentation for destroy command Oct 24, 2025
Copilot AI requested a review from josecelano October 24, 2025 19:30
@josecelano
josecelano marked this pull request as ready for review October 25, 2025 11:08
@josecelano

Copy link
Copy Markdown
Member

ACK 59666f6

@josecelano
josecelano merged commit d231514 into main Oct 25, 2025
@josecelano
josecelano deleted the copilot/add-user-documentation-for-destroy-command branch April 15, 2026 16:37
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.

Add User Documentation

2 participants