()
| 816 | } |
| 817 | |
| 818 | fn cmd_status() -> Result<(), Box<dyn std::error::Error>> { |
| 819 | tui::print_banner("Status"); |
| 820 | ensure_service_installed_for_lifecycle()?; |
| 821 | |
| 822 | if platform::service_is_running()? { |
| 823 | tui::print_success("ClawShell is running."); |
| 824 | } else { |
| 825 | tui::print_warning("ClawShell is not running."); |
| 826 | } |
| 827 | Ok(()) |
| 828 | } |
| 829 | |
| 830 | async fn cmd_restart(config_path: &str) -> Result<(), Box<dyn std::error::Error>> { |
| 831 | tui::print_banner("Restart"); |
no test coverage detected