Skip to main content

subcog/cli/
config.rs

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