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