Skip to content

Commit

Permalink
fix indenting by removing formatting on the config str
Browse files Browse the repository at this point in the history
  • Loading branch information
benmkw committed Feb 16, 2024
1 parent cc8d008 commit c0c4d59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/plumbing/progress.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::fmt::{Display, Formatter};

use crosstermion::crossterm::style::Stylize;
use owo_colors::OwoColorize;

#[derive(Clone)]
Expand Down Expand Up @@ -46,7 +45,7 @@ impl Display for Usage {
impl Usage {
pub fn icon(&self) -> &'static str {
match self {
Puzzled => "?",
Puzzled => "",
NotApplicable { .. } => "❌",
Planned { .. } => "🕒",
NotPlanned { .. } => "🤔",
Expand Down Expand Up @@ -546,11 +545,10 @@ pub fn show_progress() -> anyhow::Result<()> {
"{icon} {config: <50}: {usage}",
icon = usage.icon(),
config = if let Some(config) = config.strip_prefix("gitoxide.") {
format!("{gitoxide}{config}", gitoxide = "gitoxide.".green())
format!("{gitoxide}{config}", gitoxide = "gitoxide.")
} else {
config.to_string()
}
.bold(),
);
}

Expand Down

0 comments on commit c0c4d59

Please sign in to comment.