1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use std::process::Command;

pub struct ApiTokenGenerateCommand {
    command: Command,
}

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

    pub fn n(mut self, n: u32) -> Self {
        self.command.arg("--n").arg(n.to_string());
        self
    }

    pub fn size(mut self, size: u32) -> Self {
        self.command.arg("--size").arg(size.to_string());
        self
    }

    pub fn build(self) -> Command {
        self.command
    }
}