remove success_color

master
Aleš Katona 2 years ago
parent f2def22c6e
commit 7b71252455
Signed by: almindor
GPG Key ID: 2F773149BF38B48F

@ -98,8 +98,7 @@ impl Vcs {
pub fn status(&self) -> Result<(), Error> { pub fn status(&self) -> Result<(), Error> {
if let Some(profile_name) = self.current_profile()? { if let Some(profile_name) = self.current_profile()? {
println!( println!(
"{}{} [{}] {}", "Workspace is set to profile: {} [{}] {}",
"Workspace is set to profile: ".with(SUCCESS_COLOR),
profile_name.bold().with(PROFILE_COLOR), profile_name.bold().with(PROFILE_COLOR),
format!("{}", self.work_dir.display()).italic(), format!("{}", self.work_dir.display()).italic(),
self.min_msrv_str(), self.min_msrv_str(),
@ -179,8 +178,7 @@ impl Vcs {
fs::write(vcs_path, new_contents)?; fs::write(vcs_path, new_contents)?;
println!( println!(
"{}{}", "Workspace state saved as {}",
"Workspace state saved as ".with(SUCCESS_COLOR),
profile_name.with(PROFILE_COLOR), profile_name.with(PROFILE_COLOR),
); );
@ -232,9 +230,8 @@ impl Vcs {
for project in &self.projects { for project in &self.projects {
project.repo.checkout(branch_name)?; project.repo.checkout(branch_name)?;
println!( println!(
"{}{}{}", "{} is set to branch: {}",
project.name().with(PROJECT_COLOR), project.name().with(PROJECT_COLOR),
" is set to branch: ".with(SUCCESS_COLOR),
branch_name.bold().with(REFS_COLOR), branch_name.bold().with(REFS_COLOR),
); );
} }

@ -2,7 +2,6 @@ use crossterm::style::Color;
pub const PROJECT_COLOR: Color = Color::Red; pub const PROJECT_COLOR: Color = Color::Red;
pub const PROFILE_COLOR: Color = Color::Blue; pub const PROFILE_COLOR: Color = Color::Blue;
pub const SUCCESS_COLOR: Color = Color::Green;
pub const ERROR_COLOR: Color = Color::DarkRed; pub const ERROR_COLOR: Color = Color::DarkRed;
pub const CHANGES_COLOR: Color = Color::Cyan; pub const CHANGES_COLOR: Color = Color::Cyan;
pub const REFS_COLOR: Color = Color::DarkYellow; pub const REFS_COLOR: Color = Color::DarkYellow;

Loading…
Cancel
Save