pub struct ForgeToolDisplay;Expand description
Forge-style tool display that shows:
● tool_name(arg1=value1, arg2=value2)
└ Running...Implementations§
Source§impl ForgeToolDisplay
impl ForgeToolDisplay
Sourcepub fn format_args(args: &Value) -> String
pub fn format_args(args: &Value) -> String
Format tool arguments in a readable way
- Truncates long strings
- Shows line counts for multi-line content
- Uses key=value format
Sourcepub fn start(name: &str, args: &Value)
pub fn start(name: &str, args: &Value)
Print tool start in forge style
● tool_name(args)
└ Running...Sourcepub fn update_status(status: &str)
pub fn update_status(status: &str)
Update the status line (overwrites “Running…”)
Sourcepub fn print_inline(name: &str, args: &Value)
pub fn print_inline(name: &str, args: &Value)
Print tool inline without the tree structure (for simpler display)
Sourcepub fn summarize_result(name: &str, result: &str) -> String
pub fn summarize_result(name: &str, result: &str) -> String
Summarize tool result for display Takes the raw result and extracts a short summary
Auto Trait Implementations§
impl Freeze for ForgeToolDisplay
impl RefUnwindSafe for ForgeToolDisplay
impl Send for ForgeToolDisplay
impl Sync for ForgeToolDisplay
impl Unpin for ForgeToolDisplay
impl UnwindSafe for ForgeToolDisplay
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.