use crate::options::{SetLocalWindowOption, SetUserOptions, SetWindowOptionsTr};
use crate::{TmuxCommand, TmuxCommands};
#[derive(Debug)]
pub struct SetLocalWindowOptions<'a> {
pub options: TmuxCommands<'a>,
}
impl<'a> SetWindowOptionsTr<'a> for SetLocalWindowOptions<'a> {
type Setter = SetLocalWindowOption;
fn new() -> Self {
Self {
options: TmuxCommands::new(),
}
}
fn push(&mut self, option: TmuxCommand<'a>) {
self.options.push(option);
}
fn push_cmds(&mut self, options: TmuxCommands<'a>) {
self.options.push_cmds(options);
}
fn build(self) -> TmuxCommands<'a> {
self.options
}
}
impl<'a> SetUserOptions<'a> for SetLocalWindowOptions<'a> {
type Setter = SetLocalWindowOption;
fn push(&mut self, option: TmuxCommand<'a>) {
self.options.push(option);
}
}