|
|
@ -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),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|