make a reasonable readme #19

Merged
seb merged 2 commits from readme into main 2025-07-12 16:12:32 -06:00
Showing only changes of commit 3721483c2d - Show all commits

View file

@ -251,7 +251,7 @@ pub fn sync(dir: &std::path::Path, remote: &str, branch: &str) -> Result<(), Git
if !result.status.success() { if !result.status.success() {
println!( println!(
"Sync failed! 'git log' error! Help, a human needs to fix the mess in {:?}", "Sync failed! 'git log' error! Help, a human needs to fix the mess in {:?}",
dir branch
); );
println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap()); println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap());
println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap()); println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap());
@ -277,7 +277,7 @@ pub fn sync(dir: &std::path::Path, remote: &str, branch: &str) -> Result<(), Git
if !result.status.success() { if !result.status.success() {
println!( println!(
"Sync failed! 'git log' error! Help, a human needs to fix the mess in {:?}", "Sync failed! 'git log' error! Help, a human needs to fix the mess in {:?}",
dir branch
); );
println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap()); println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap());
println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap()); println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap());
@ -297,7 +297,7 @@ pub fn sync(dir: &std::path::Path, remote: &str, branch: &str) -> Result<(), Git
if !result.status.success() { if !result.status.success() {
println!( println!(
"Sync failed! Merge error! Help, a human needs to fix the mess in {:?}", "Sync failed! Merge error! Help, a human needs to fix the mess in {:?}",
dir branch
); );
println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap()); println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap());
println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap()); println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap());
@ -312,7 +312,7 @@ pub fn sync(dir: &std::path::Path, remote: &str, branch: &str) -> Result<(), Git
if !result.status.success() { if !result.status.success() {
println!( println!(
"Sync failed! Push error! Help, a human needs to fix the mess in {:?}", "Sync failed! Push error! Help, a human needs to fix the mess in {:?}",
dir branch
); );
println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap()); println!("stdout: {}", std::str::from_utf8(&result.stdout).unwrap());
println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap()); println!("stderr: {}", std::str::from_utf8(&result.stderr).unwrap());