Merge branch 'feat/tui-implementation'
This commit is contained in:
commit
f1ab948bb4
29 files changed
+11321
-8
No files matched your search
+2
-2
@@ -14,7 +14,7 @@ use std::process::{Command, Stdio};
|
||||
use std::sync::mpsc;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
fn git(dir: &Path, args: &[&str]) -> Result<String> {
|
||||
pub(crate) fn git(dir: &Path, args: &[&str]) -> Result<String> {
|
||||
let o = Command::new("git")
|
||||
.args(["-c", "user.name=orch", "-c", "user.email=orch@localhost"])
|
||||
.args(args)
|
||||
@@ -129,7 +129,7 @@ fn is_rate_limit(reason: &str) -> bool {
|
||||
/// Max bytes of gate output fed back to hx (the tail: errors are at the end).
|
||||
const GATE_LOG_LIMIT: usize = 8000;
|
||||
|
||||
fn tail(b: &[u8], limit: usize) -> String {
|
||||
pub(crate) fn tail(b: &[u8], limit: usize) -> String {
|
||||
let s = String::from_utf8_lossy(&b[b.len().saturating_sub(limit)..]).into_owned();
|
||||
s.trim_start_matches('\u{FFFD}').to_string()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user