swayipc-command-builder 0.1.0

A library for building commands that can be executed by swayipc
Documentation
use super::*;

impl Command<Unbindswitch> {
    pub fn switch(self, switch: impl AsRef<str>) -> Command<Unbindswitch<With>> {
        self.push_str(switch).transmute()
    }

    pub fn locked(self) -> Command<Unbindswitch> {
        self.push_str("--locked").transmute()
    }

    pub fn no_warn(self) -> Command<Unbindswitch> {
        self.push_str("--no-warn").transmute()
    }

    pub fn reload(self) -> Command<Unbindswitch> {
        self.push_str("--reload").transmute()
    }
}

impl Command<Unbindswitch<With>> {
    pub fn state(self, state: impl AsRef<str>) -> Command<Valid> {
        self.push_char(':')
            .push_str_without_space(state)
            .transmute()
    }
}