Output

Struct Output 

Source
pub struct Output;
Expand description

Centralized output formatting utilities for consistent CLI presentation

Implementations§

Source§

impl Output

Source

pub fn success<T: Display>(message: T)

Print a success message with checkmark (bright bold green)

Source

pub fn error<T: Display>(message: T)

Print an error message with X mark

Source

pub fn warning<T: Display>(message: T)

Print a warning message with warning emoji

Source

pub fn info<T: Display>(message: T)

Print an info message with info emoji (muted green)

Source

pub fn sub_item<T: Display>(message: T)

Print a sub-item with arrow prefix

Source

pub fn bullet<T: Display>(message: T)

Print a bullet point

Source

pub fn section<T: Display>(title: T)

Print a section header

Source

pub fn tip<T: Display>(message: T)

Print a tip/suggestion (muted green)

Source

pub fn progress<T: Display>(message: T)

Print progress indicator (muted green)

Source

pub fn divider()

Print a divider line

Source

pub fn stack_info( name: &str, id: &str, base_branch: &str, working_branch: Option<&str>, is_active: bool, )

Print stack information in a formatted way

Source

pub fn next_steps(steps: &[&str])

Print next steps guidance

Source

pub fn command_example<T: Display>(command: T)

Print a command example

Source

pub fn check_start<T: Display>(message: T)

Print a check start message

Source

pub fn solution<T: Display>(message: T)

Print a solution message

Source

pub fn numbered_item<T: Display>(number: usize, message: T)

Print a numbered item (muted green)

Source

pub fn spacing()

Print empty line for spacing

Source

pub fn entry_status(is_submitted: bool, is_merged: bool) -> String

Format stack entry status with appropriate color

  • pending: Yellow (work in progress)
  • submitted: Muted green (PR open/under review)
  • merged: Bright green (completed!)

Auto Trait Implementations§

§

impl Freeze for Output

§

impl RefUnwindSafe for Output

§

impl Send for Output

§

impl Sync for Output

§

impl Unpin for Output

§

impl UnwindSafe for Output

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,