soph_console/support/
console.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::Console;
use clap::builder::{IntoResettable, Str, StyledStr};

impl Console {
    pub fn name(mut self, name: impl Into<Str>) -> Self {
        self.inner = self.inner.name(name);
        self
    }

    pub fn version(mut self, ver: impl IntoResettable<Str>) -> Self {
        self.inner = self.inner.version(ver);
        self
    }

    pub fn about(mut self, about: impl IntoResettable<StyledStr>) -> Self {
        self.inner = self.inner.about(about);
        self
    }
}