Skip to content

Commit

Permalink
Reformat docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
grtcdr committed Feb 1, 2025
1 parent ef854b5 commit 953ad7f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,14 @@ pub trait GeneralReadout {
/// _e.g._ `kitty`
fn terminal(&self) -> Result<String, ReadoutError>;

/// This function should return the currently running shell depending on the `_shorthand` value,
/// for example: /bin/bash, /bin/zsh, etc.
/// - If `_shorthand` is `ShellFormat::Relative` the basename of the shell will be returned,
/// _e.g._ bash, zsh, etc.
/// - If `_shorthand` is `ShellFormat::Absolute` the absolute path of the shell will be returned.
/// This function should return the currently running shell depending on the `_shorthand`
/// value, for example: /bin/bash, /bin/zsh, etc.
///
/// - If `_shorthand` is `ShellFormat::Relative` the basename of the shell will be returned,
/// _e.g._ bash, zsh, etc.
///
/// - If `_shorthand` is `ShellFormat::Absolute` the absolute path of the shell will be
/// returned.
fn shell(&self, _shorthand: ShellFormat, kind: ShellKind) -> Result<String, ReadoutError>;

Expand Down

0 comments on commit 953ad7f

Please # to comment.