pub enum HelpTopic {
Overview,
Syntax,
Builtins,
Vfs,
Scatter,
Limits,
Tool(String),
}Expand description
Help topics available in kaish.
Variants§
Overview
Overview of kaish with topic list.
Syntax
Syntax reference: variables, quoting, pipes, control flow.
Builtins
List of all available builtins.
Vfs
Virtual filesystem mounts and paths.
Scatter
Scatter/gather parallel processing.
Limits
Known limitations.
Tool(String)
Help for a specific tool.
Implementations§
Source§impl HelpTopic
impl HelpTopic
Sourcepub fn parse_topic(s: &str) -> Self
pub fn parse_topic(s: &str) -> Self
Parse a topic string into a HelpTopic.
Returns Overview for empty/None, specific topics for known names, or Tool(name) for anything else (assumes it’s a tool name).
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a short description of this topic.
Trait Implementations§
impl Eq for HelpTopic
impl StructuralPartialEq for HelpTopic
Auto Trait Implementations§
impl Freeze for HelpTopic
impl RefUnwindSafe for HelpTopic
impl Send for HelpTopic
impl Sync for HelpTopic
impl Unpin for HelpTopic
impl UnwindSafe for HelpTopic
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.