pub enum BuildInstruction {
InstallBuilder(Box<BuilderInstruction>),
MakeExecutable(PathBuf),
MoveFile(PathBuf, PathBuf),
RemoveAllExcept(Vec<PathBuf>),
RemoveDir(PathBuf),
RemoveFile(PathBuf),
RequestScript(String),
RunCommand(Box<CommandInstruction>),
SetEnvVar(String, String),
}
Expand description
An instruction to execute.
Variants§
InstallBuilder(Box<BuilderInstruction>)
Install a builder locally that can be referenced in subsequent instructions.
MakeExecutable(PathBuf)
Update a file and make it executable.
MoveFile(PathBuf, PathBuf)
Move a file from source to destination.
RemoveAllExcept(Vec<PathBuf>)
Remove all files except those matching the provided list.
RemoveDir(PathBuf)
Remove a directory.
RemoveFile(PathBuf)
Remove a file.
RequestScript(String)
Request (curl, wget, etc) a script and download to the host.
RunCommand(Box<CommandInstruction>)
Execute a command as a child process.
SetEnvVar(String, String)
Set an environment variable.
Trait Implementations§
Source§impl Clone for BuildInstruction
impl Clone for BuildInstruction
Source§fn clone(&self) -> BuildInstruction
fn clone(&self) -> BuildInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BuildInstruction
impl Debug for BuildInstruction
Source§impl<'de> Deserialize<'de> for BuildInstruction
impl<'de> Deserialize<'de> for BuildInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BuildInstruction
impl PartialEq for BuildInstruction
Source§impl Serialize for BuildInstruction
impl Serialize for BuildInstruction
impl StructuralPartialEq for BuildInstruction
Auto Trait Implementations§
impl Freeze for BuildInstruction
impl RefUnwindSafe for BuildInstruction
impl Send for BuildInstruction
impl Sync for BuildInstruction
impl Unpin for BuildInstruction
impl UnwindSafe for BuildInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more