pub enum Entry {
Shell(String),
Php(String),
Composer(String),
PutEnv {
key: String,
val: String,
},
Alias(String),
Callback {
class: String,
method: String,
},
}Expand description
A single listener entry within a scripts.<event> list, classified by
Composer’s entry grammar.
Variants§
Shell(String)
A plain shell command, run via /bin/sh -e -c (Unix) / cmd /C.
Php(String)
@php <args> — run with the project’s resolved PHP binary.
Composer(String)
@composer <args> — re-invoke Composer. bougie isn’t Composer; the
common subcommands are mapped, the rest warn-skipped.
PutEnv
@putenv KEY=VAL — set an env var for subsequent entries in this
dispatch (scoped to the dispatch, not the process).
Alias(String)
@<name> — a script alias; dispatch recurses into scripts.<name>.
Callback
Vendor\Class::method — a PHP callback invoked in-process by Composer.
Not hosted by bougie except via the native callback registry.
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.