use std::sync::Arc; use cli_renderer::RenderCommand; use crate::node::NodeCommand; #[derive(Debug, Clone)] pub enum WatcherCommand { NodeResponse(String), Node(NodeCommand), Echo(Vec), Print(String), InvalidCommand(String), Render(RenderCommand), SetMode(WatcherMode), Exit, } #[derive(Debug, Clone)] pub enum WatcherMode { Input, Select{ content: Arc>, title: String, callback: Box, index: usize, }, }