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
10
11
12
13
use std::path::PathBuf;

pub(crate) async fn cmd_init(path: &str) -> Result<(), Box<dyn std::error::Error>> {
    let repo_path = PathBuf::from(path);
    let repo = suture_core::repository::Repository::init(&repo_path, "unknown")?;
    println!(
        "Initialized empty Suture repository in {}",
        repo_path.display()
    );
    println!("Hint: run `suture config user.name \"Your Name\"` to set your identity");
    drop(repo);
    Ok(())
}