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

20
gdn/src/repo/v0.rs Normal file
View file

@ -0,0 +1,20 @@
use std::collections::HashMap;
use super::v1;
pub const VERSION: u32 = 0;
pub struct Repo;
impl Repo {
pub fn load() -> Self {
Self
}
pub fn migrate(self) -> super::Repo {
v1::Repo {
notes: HashMap::new(),
}
.migrate()
}
}