Close state ledger document shape

This commit is contained in:
Meta Vens 2026-05-19 11:18:36 +01:00
commit 4cc7e2858d
6 changed files with 2 additions and 16 deletions

View file

@ -6,7 +6,6 @@ use epiphany_core::add_state_branch;
use epiphany_core::append_state_evidence;
use epiphany_core::close_state_branch;
use epiphany_core::state_ledger_status;
use std::collections::BTreeMap;
use std::env;
use std::path::PathBuf;
@ -29,7 +28,6 @@ fn main() -> Result<()> {
status: require_string_arg(&mut args, "--status")?,
note: require_string_arg(&mut args, "--note")?,
branch: optional_string_arg(&mut args, "--branch")?,
extra: BTreeMap::new(),
};
print_json(&append_state_evidence(store, record)?)?;
}
@ -44,7 +42,6 @@ fn main() -> Result<()> {
status: "active".to_string(),
artifacts,
notes: note.unwrap_or_default(),
extra: BTreeMap::new(),
};
print_json(&add_state_branch(store, branch)?)?;
}

View file

@ -6,7 +6,6 @@ use epiphany_core::add_state_branch;
use epiphany_core::append_state_evidence;
use epiphany_core::close_state_branch;
use epiphany_core::load_state_ledger;
use std::collections::BTreeMap;
use std::env;
use std::fs;
use std::path::Path;
@ -55,7 +54,6 @@ fn main() -> Result<()> {
status: status.context("missing --status")?,
note: note.context("missing --note")?,
branch,
extra: BTreeMap::new(),
},
)?;
println!("Appended evidence record.");
@ -93,7 +91,6 @@ fn main() -> Result<()> {
status: "active".to_string(),
artifacts,
notes: note.unwrap_or_default(),
extra: BTreeMap::new(),
},
)?;
println!("Added branch '{id}'.");