Add repo add and repo show commands

This commit is contained in:
Joscha 2025-04-30 00:49:04 +02:00
parent b922af9283
commit 2c5ff584db
10 changed files with 219 additions and 4 deletions

View file

@ -8,9 +8,11 @@ mod lockfile;
mod v0;
mod v1;
pub use crate::repo::VERSION as REPO_VERSION;
pub use self::{
datadir::{LockedDataDir, UnlockedDataDir},
v1::{State, VERSION, load_state, tidy},
v1::{State, VERSION, add_repo, load_repo, load_repo_version, load_state, tidy},
};
fn migrate(dir: &LockedDataDir) -> anyhow::Result<()> {