diff options
| author | Mica White <botahamec@outlook.com> | 2026-03-29 15:52:44 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-03-29 15:52:44 -0400 |
| commit | 634f6da6186cd9bdcc0e3dde3a16085ad59536e3 (patch) | |
| tree | 2603e3008bc98f0b65322351df5d255d35ed7c72 /src/bin/git-init-autosave.rs | |
| parent | 9a3fa573f2f471218247476d3b3ad5fde08df29d (diff) | |
Added logging for commands
Diffstat (limited to 'src/bin/git-init-autosave.rs')
| -rw-r--r-- | src/bin/git-init-autosave.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/git-init-autosave.rs b/src/bin/git-init-autosave.rs index df3b66d..8e72a9e 100644 --- a/src/bin/git-init-autosave.rs +++ b/src/bin/git-init-autosave.rs @@ -1,10 +1,13 @@ -use git2::Repository; use git_autosave::{init, load_config, save_config}; +use git2::Repository; fn main() -> Result<(), anyhow::Error> { let repository = Repository::discover(".")?; let mut config = load_config()?; - init(&repository, Some(&mut config))?; + let id = init(&repository, Some(&mut config))?; save_config(&config)?; + + println!("Initialized autosave for repository: {id}"); + Ok(()) } |
