From e76c69b5d0be5a4c92b91f096768f5a714f4d933 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Thu, 25 Apr 2024 12:46:53 +0200 Subject: [PATCH] patch: Use terminal module from radicle-cli --- bin/commands/patch.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/commands/patch.rs b/bin/commands/patch.rs index 8f387576..76ab609e 100644 --- a/bin/commands/patch.rs +++ b/bin/commands/patch.rs @@ -14,8 +14,8 @@ use radicle_tui as tui; use tui::cob::patch::{self, Filter}; use tui::log; -use crate::terminal; -use crate::terminal::args::{Args, Error, Help}; +use radicle_cli::terminal; +use radicle_cli::terminal::args::{Args, Error, Help}; pub const HELP: Help = Help { name: "patch", @@ -145,7 +145,7 @@ impl Args for Options { } #[tokio::main] -pub async fn run(options: Options, _ctx: impl terminal::Context) -> anyhow::Result<()> { +pub async fn run(options: Options, ctx: impl terminal::Context) -> anyhow::Result<()> { use radicle::storage::ReadStorage; let (_, rid) = radicle::rad::cwd() @@ -153,7 +153,7 @@ pub async fn run(options: Options, _ctx: impl terminal::Context) -> anyhow::Resu match options.op { Operation::Select { opts } => { - let profile = terminal::profile()?; + let profile = ctx.profile()?; let rid = options.repo.unwrap_or(rid); let repository = profile.storage.repository(rid).unwrap();