Struct shellscript::ShellScript
[−]
[src]
pub struct ShellScript {
pub interpreter: String,
pub comments: Vec<String>,
pub commands: Vec<String>,
}A very basic representation of a shell script. There is an interpreter, some comments and a list of commands
Fields
interpreter: String
the interpreter to use
comments: Vec<String>
Any comments here will be joined with newlines when written back out
commands: Vec<String>
Any commands here will be joined with newlines when written back out
Methods
impl ShellScript[src]
fn write<T: Write>(&self, f: &mut T) -> Result<usize, Error>
Write the run control struct back out to a file