shelle 0.1.1

Macros for writing shell scripts in Rust.
Documentation
use std::ffi::{OsStr, OsString};

#[derive(Default)]
pub struct Arg {
    string: OsString,
}

impl Arg {
    pub fn push(mut self, s: impl AsRef<OsStr>) -> Self {
        self.string.push(s);
        self
    }
}

impl AsRef<OsStr> for Arg {
    fn as_ref(&self) -> &OsStr {
        &self.string
    }
}

impl From<Arg> for OsString {
    fn from(builder: Arg) -> Self {
        builder.string
    }
}