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

the interpreter to use

Any comments here will be joined with newlines when written back out

Any commands here will be joined with newlines when written back out

Methods

impl ShellScript
[src]

Write the run control struct back out to a file

Trait Implementations

impl Debug for ShellScript
[src]

Formats the value using the given formatter.