diff --git a/radicle-cli/src/commands/inspect.rs b/radicle-cli/src/commands/inspect.rs index af8f7fbf..4fa79fbd 100644 --- a/radicle-cli/src/commands/inspect.rs +++ b/radicle-cli/src/commands/inspect.rs @@ -128,7 +128,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { if options.refs { let path = profile - .paths() + .home .storage() .join(id.urn()) .join("refs") diff --git a/radicle-cli/src/commands/rm.rs b/radicle-cli/src/commands/rm.rs index d5d0fd89..7d696767 100644 --- a/radicle-cli/src/commands/rm.rs +++ b/radicle-cli/src/commands/rm.rs @@ -81,7 +81,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { let id = options.id; if let Ok(Some(_)) = storage.get(signer.public_key(), id.to_owned()) { - let namespace = profile.paths().storage().join(id.urn()); + let namespace = profile.home.storage().join(id.urn()); if !options.confirm || term::confirm(format!( diff --git a/radicle-cli/src/commands/self.rs b/radicle-cli/src/commands/self.rs index 801e0976..021895ac 100644 --- a/radicle-cli/src/commands/self.rs +++ b/radicle-cli/src/commands/self.rs @@ -86,19 +86,19 @@ fn all(profile: &Profile) -> anyhow::Result<()> { let ssh_long = ssh::fmt::key(node_id); table.push(["Key (full)", &term::format::tertiary(ssh_long)]); - let storage_path = profile.paths().storage(); + let storage_path = profile.home.storage(); table.push([ "Storage (git)", &term::format::tertiary(storage_path.display()), ]); - let keys_path = profile.paths().keys(); + let keys_path = profile.home.keys(); table.push([ "Storage (keys)", &term::format::tertiary(keys_path.display()), ]); - let node_path = profile.paths().node(); + let node_path = profile.home.node(); table.push([ "Node (socket)", &term::format::tertiary(node_path.join("radicle.sock").display()), diff --git a/radicle/src/profile.rs b/radicle/src/profile.rs index efd1aa57..8c1b4b2d 100644 --- a/radicle/src/profile.rs +++ b/radicle/src/profile.rs @@ -137,11 +137,6 @@ impl Profile { pub fn socket(&self) -> PathBuf { self.home.socket() } - - /// Get `Paths` of profile - pub fn paths(&self) -> &Home { - &self.home - } } /// Get the path to the radicle home folder.