diff --git a/src/cli.rs b/src/cli.rs index 93e80d2..1ded92a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -102,6 +102,7 @@ impl Cli { } let args = init.to_curl_args().map_err(AppError::ParseError)?; + eprint!("\n"); println!("{}", args.join(" ")); Ok(()) diff --git a/src/prompt.rs b/src/prompt.rs index d20bdcb..b5ece28 100644 --- a/src/prompt.rs +++ b/src/prompt.rs @@ -59,7 +59,7 @@ where ) -> anyhow::Result { self.provider.term().clear()?; - self.provider.begin()?; + self.provider.with_intro("Build Request").begin()?; let mut path_prompt = self.path_prompt()?; let (path, path_item) = if let Some(path) = path { let path_item = self @@ -209,6 +209,8 @@ where None }; + self.provider.finish()?; + Ok(RequestInit { method, base: String::new(),