Skip to main content

subcog/cli/
migrate.rs

1//! Migration CLI command.
2//!
3//! Provides commands for migrating existing memories to use new features
4//! like real embeddings.
5
6/// Migration command handler.
7pub struct MigrateCommand;
8
9impl MigrateCommand {
10    /// Creates a new migration command.
11    #[must_use]
12    pub const fn new() -> Self {
13        Self
14    }
15}
16
17impl Default for MigrateCommand {
18    fn default() -> Self {
19        Self::new()
20    }
21}
22
23#[cfg(test)]
24mod tests {
25    use super::*;
26
27    #[test]
28    fn test_migrate_command_new() {
29        let _cmd = MigrateCommand::new();
30    }
31
32    #[test]
33    #[allow(clippy::default_constructed_unit_structs)]
34    fn test_migrate_command_default() {
35        let _cmd = MigrateCommand::default();
36    }
37}