pub enum Step {
Package {
id: String,
name: String,
binary: Option<String>,
sources: Vec<Source>,
removal: bool,
},
Script {
id: String,
name: String,
file: PathBuf,
program: String,
args: Vec<String>,
interactive: bool,
},
Command {
id: String,
name: String,
line: String,
},
Nix {
id: String,
name: String,
action: NixAction,
},
Native {
id: String,
name: String,
action: NativeAction,
},
Shell {
id: String,
name: String,
program: String,
display: String,
requires: Vec<String>,
changes: Vec<ShellChange>,
},
Update {
id: String,
name: String,
source: Source,
targets: Vec<UpdateTarget>,
},
}Expand description
One thing to run, with everything needed to run it.
Variants§
Package
Installs a package from the first of its sources that works, or removes it through its one source.
Fields
Script
Command
Nix
Native
Runs inside HelixForge itself, re-invoked from the shell program.
Shell
A small program HelixForge builds itself from quoted values only: restoring a backup, taking a snapshot.
Fields
§
changes: Vec<ShellChange>What it changes, for the change preview.
Update
Brings installed packages up to date through one source; on Arch, the whole system for every target at once.
Implementations§
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.