suture-cli 1.0.0

A patch-based version control system with semantic merge for structured files
1
2
3
4
5
6
7
8
9
pub(crate) async fn cmd_mv(
    source: &str,
    destination: &str,
) -> Result<(), Box<dyn std::error::Error>> {
    let repo = suture_core::repository::Repository::open(std::path::Path::new("."))?;
    repo.rename_file(source, destination)?;
    println!("Renamed {} -> {}", source, destination);
    Ok(())
}