Skip to main content

subcog/cli/
capture.rs

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