Skip to main content

subcog/cli/
status.rs

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