-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
priority: mediumMedium priority commands (monitoring/control tier)Medium priority commands (monitoring/control tier)type: api-integrationAPI integration workAPI integration worktype: commandCommand implementationCommand implementation
Milestone
Description
🎯 Implement restart Command
Priority: MEDIUM (Control Tier - Tier 3)
API Endpoint: POST /restart
Phase: Control Commands
Dependencies: info command (server validation)
📋 Acceptance Criteria
- Command structure implemented in Cliffy
- API integration with mikr.us /restart endpoint
- Input validation and error handling
- User confirmation prompt for safety
- Support for 3 output modes (default, -f, -raw)
- Restart status verification
- Unit tests with >80% coverage
- Integration tests with API mocking
- Security validation tests
- Documentation updated
🧪 TDD Implementation
- Write failing tests first
- Implement minimal passing code
- Refactor and optimize
- Add edge case tests
🔧 Technical Details
- Critical operation requiring user confirmation
- Should verify server status before restart
- May need to wait and verify restart completion
- Requires robust error handling for restart failures
🔗 Dependencies
- Depends on: Implement
infocommand - Server details & specs #117 (info command) for server validation - May depend on: Implement
logscommand - View server logs #119 (logs command) for restart verification - Blocks: None (independent control operation)
🎯 Success Criteria
- Command safely restarts server with confirmation
- Proper status verification after restart
- All output modes working correctly
- Test coverage >80%
Implementation Order: 5th (Control - depends on foundation)**
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: mediumMedium priority commands (monitoring/control tier)Medium priority commands (monitoring/control tier)type: api-integrationAPI integration workAPI integration worktype: commandCommand implementationCommand implementation