Skip to main content

subcog/cli/
serve.rs

1//! Serve CLI command (MCP server).
2
3/// Serve command handler.
4pub struct ServeCommand;
5
6impl ServeCommand {
7    /// Creates a new serve command.
8    #[must_use]
9    pub const fn new() -> Self {
10        Self
11    }
12}
13
14impl Default for ServeCommand {
15    fn default() -> Self {
16        Self::new()
17    }
18}
19
20#[cfg(test)]
21mod tests {
22    use super::*;
23
24    #[test]
25    fn test_serve_command_new() {
26        let _cmd = ServeCommand::new();
27    }
28
29    #[test]
30    #[allow(clippy::default_constructed_unit_structs)]
31    fn test_serve_command_default() {
32        let _cmd = ServeCommand::default();
33    }
34}