pub enum Runs {
Command(String),
Open(String),
OpenUrl(String),
Read(String),
List(String),
Section {
file: String,
heading: String,
},
Help(String),
}Expand description
What a tool runs, placeholders resolved to logical paths where the definition allows.
Variants§
Command(String)
The declared command and args, shell-quoted, placeholders unresolved.
Open(String)
Open a file or folder in the desktop’s default application.
OpenUrl(String)
Open an HTTP(S) URL in the browser.
Read(String)
Print a UTF-8 file.
List(String)
List a folder.
Section
Print one section of a Markdown file.
Help(String)
Print <program> <subcommand...> --help.
Implementations§
Trait Implementations§
impl Eq for Runs
impl StructuralPartialEq for Runs
Auto Trait Implementations§
impl Freeze for Runs
impl RefUnwindSafe for Runs
impl Send for Runs
impl Sync for Runs
impl Unpin for Runs
impl UnsafeUnpin for Runs
impl UnwindSafe for Runs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.