radicle: Move some functions to Home type

Certain functions in `Profile` did not need to be in there and could be
moved in the more basic `Home` type.
This commit is contained in:
cloudhead
2023-11-03 17:08:18 +01:00
parent d15534df97
commit a70664368e
5 changed files with 72 additions and 20 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
term::print(profile.did());
}
Show::Home => {
term::print(profile.home().display());
term::print(profile.home().path().display());
}
Show::Config => {
term::print(profile.home.config().display());
@@ -171,7 +171,7 @@ fn all(profile: &Profile) -> anyhow::Result<()> {
let home = profile.home();
table.push([
term::format::style("Home").into(),
term::format::tertiary(home.display()).into(),
term::format::tertiary(home.path().display()).into(),
]);
let config_path = profile.home.config();