add 'ta config path'

This commit is contained in:
Dustin J. Mitchell 2021-05-21 22:39:10 -04:00
parent 7f046a8e27
commit 45db886f2a
2 changed files with 24 additions and 9 deletions

View file

@ -19,6 +19,13 @@ pub(crate) fn execute<W: WriteColor>(
writeln!(w, "{:?}.", filename)?;
w.set_color(ColorSpec::new().set_bold(false))?;
}
ConfigOperation::Path => {
if let Some(ref filename) = settings.filename {
writeln!(w, "{}", filename.to_string_lossy())?;
} else {
return Err(anyhow::anyhow!("No configuration filename found").into());
}
}
}
Ok(())
}