feat: use termwiz as backend as that enables a ptty, which can be cleaned up nicely
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-23 22:16:19 +02:00
parent f0f81f8a0b
commit 348e448ce9
10 changed files with 663 additions and 107 deletions

View File

@@ -1,4 +1,4 @@
use std::collections::BTreeMap;
use std::{collections::BTreeMap, io::IsTerminal};
use crate::{
app::App,
@@ -88,7 +88,7 @@ impl RootCommand {
if clone {
let git_clone = self.app.git_clone();
if atty::is(atty::Stream::Stdout) && shell {
if std::io::stdout().is_terminal() && shell {
let mut wrap_cmd =
InlineCommand::new(format!("cloning: {}", repo.to_rel_path().display()));
let repo = repo.clone();