pub struct ShellOutputFormat;Expand description
Shell-compatible output formatter.
Produces output strings that match the format of legacy shell scripts, ensuring behavior parity during migration.
Implementations§
Source§impl ShellOutputFormat
impl ShellOutputFormat
Sourcepub fn success(component_id: &str, version: &str) -> String
pub fn success(component_id: &str, version: &str) -> String
Format a success message matching shell script convention.
Shell scripts typically output: [component_name] [version] installed successfully
Sourcepub fn failure(component_id: &str, reason: &str) -> String
pub fn failure(component_id: &str, reason: &str) -> String
Format a failure message matching shell script convention.
Shell scripts typically output: Error: [component_name] installation failed: [reason]
Auto Trait Implementations§
impl Freeze for ShellOutputFormat
impl RefUnwindSafe for ShellOutputFormat
impl Send for ShellOutputFormat
impl Sync for ShellOutputFormat
impl Unpin for ShellOutputFormat
impl UnsafeUnpin for ShellOutputFormat
impl UnwindSafe for ShellOutputFormat
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> 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 more