Add repo add and repo show commands
This commit is contained in:
parent
b922af9283
commit
2c5ff584db
10 changed files with 219 additions and 4 deletions
20
gdn/src/repo/v0.rs
Normal file
20
gdn/src/repo/v0.rs
Normal 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()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue