Enum nu_protocol::CommandAction[][src]

pub enum CommandAction {
    ChangePath(String),
    Exit(i32),
    Error(ShellError),
    EnterShell(String),
    AutoConvert(ValueString),
    EnterValueShell(Value),
    EnterHelpShell(Value),
    AddPlugins(String),
    PreviousShell,
    NextShell,
    LeaveShell(i32),
}

The inner set of actions for the command processor. Each denotes a way to change state in the processor without changing it directly from the command itself.

Variants

ChangePath(String)

Change to a new directory or path (in non-filesystem situations)

Exit(i32)

Exit out of Nu

Error(ShellError)

Display an error

EnterShell(String)

Enter a new shell at the given path

AutoConvert(ValueString)

Convert the value given from one type to another

EnterValueShell(Value)

Enter a value shell, one that allows exploring inside of a Value

EnterHelpShell(Value)

Enter the help shell, which allows exploring the help system

AddPlugins(String)

Add plugins from path given

PreviousShell

Go to the previous shell in the shell ring buffer

NextShell

Go to the next shell in the shell ring buffer

LeaveShell(i32)

Leave the current shell. If it’s the last shell, exit out of Nu

Trait Implementations

impl Clone for CommandAction[src]

impl Debug for CommandAction[src]

impl<'de> Deserialize<'de> for CommandAction[src]

impl PrettyDebug for CommandAction[src]

fn pretty(&self) -> DebugDocBuilder[src]

Get a command action ready to be pretty-printed

impl Serialize for CommandAction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PrettyDebugWithSource for T where
    T: PrettyDebug
[src]

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.