pub enum OutputContext {
Interactive,
Piped,
Model,
Script,
}Expand description
Output context determines how command output should be formatted.
Different contexts prefer different output formats:
- Interactive — Pretty columns, colors, traditional tree (TTY/REPL)
- Piped — Raw output for pipeline processing
- Model — Token-efficient compact formats (MCP server / agent context)
- Script — Non-interactive script execution
Variants§
Interactive
Interactive TTY/REPL - use human-friendly format with colors.
Piped
Output to another command - use raw output for pipes.
Model
MCP server / agent context - use token-efficient model format.
Script
Non-interactive script - use raw output.
Trait Implementations§
Source§impl Clone for OutputContext
impl Clone for OutputContext
Source§fn clone(&self) -> OutputContext
fn clone(&self) -> OutputContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputContext
impl Debug for OutputContext
Source§impl Default for OutputContext
impl Default for OutputContext
Source§fn default() -> OutputContext
fn default() -> OutputContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for OutputContext
impl PartialEq for OutputContext
impl Copy for OutputContext
impl Eq for OutputContext
impl StructuralPartialEq for OutputContext
Auto Trait Implementations§
impl Freeze for OutputContext
impl RefUnwindSafe for OutputContext
impl Send for OutputContext
impl Sync for OutputContext
impl Unpin for OutputContext
impl UnwindSafe for OutputContext
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.