mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
Add blank line before human gate prompt
Insert a separator bar through indicatif before hiding progress bars for interactive prompts, ensuring a visual gap between the spinner and the dialoguer prompt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
81841d28eb
commit
aa158ef6a5
1 changed files with 9 additions and 1 deletions
|
|
@ -493,7 +493,15 @@ impl ProgressAwareInterviewer {
|
|||
#[async_trait]
|
||||
impl Interviewer for ProgressAwareInterviewer {
|
||||
async fn ask(&self, question: Question) -> Answer {
|
||||
self.hide_bars();
|
||||
{
|
||||
let ui = self.progress.lock().expect("progress lock poisoned");
|
||||
if let ProgressRenderer::Tty(tty) = &ui.renderer {
|
||||
let sep = tty.multi.add(ProgressBar::new_spinner());
|
||||
sep.set_style(style_empty());
|
||||
sep.finish();
|
||||
tty.multi.set_draw_target(ProgressDrawTarget::hidden());
|
||||
}
|
||||
}
|
||||
let answer = self.inner.ask(question).await;
|
||||
self.show_bars();
|
||||
answer
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue