pub enum CommandCategory {
Status,
Content,
Data,
Unknown,
}Expand description
Command category — determines default output handling when no pattern matches.
Categories are auto-detected from command strings using detect_category.
When a large output has no matching pattern, the category determines the fallback
behavior:
- Status: Test runners, builds, linters → quiet success (empty summary)
- Content: File viewers and diffs → always passthrough (never index)
- Data: Listing and querying commands → index for recall
- Unknown: Anything else → passthrough (safe default)
Variants§
Status
test runners, linters, builds — agent wants pass/fail (quiet success)
Content
git show, git diff, cat — agent wants the actual output (passthrough)
Data
git log, gh api, ls — structured/queryable data (index for recall)
Unknown
anything else — defaults to passthrough (safe)
Trait Implementations§
Source§impl Clone for CommandCategory
impl Clone for CommandCategory
Source§fn clone(&self) -> CommandCategory
fn clone(&self) -> CommandCategory
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 CommandCategory
impl Debug for CommandCategory
Source§impl PartialEq for CommandCategory
impl PartialEq for CommandCategory
impl Copy for CommandCategory
impl Eq for CommandCategory
impl StructuralPartialEq for CommandCategory
Auto Trait Implementations§
impl Freeze for CommandCategory
impl RefUnwindSafe for CommandCategory
impl Send for CommandCategory
impl Sync for CommandCategory
impl Unpin for CommandCategory
impl UnsafeUnpin for CommandCategory
impl UnwindSafe for CommandCategory
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§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.