1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
mod init;

pub use init::InitDbCommand;
use std::process::Command;

pub struct DbCommand {
    command: Command,
}

impl DbCommand {
    pub fn new(command: Command) -> Self {
        Self { command }
    }

    pub fn init(mut self) -> InitDbCommand {
        self.command.arg("init");
        InitDbCommand::new(self.command)
    }
}