Close state ledger document shape
This commit is contained in:
parent
f19e99c7fe
commit
4cc7e2858d
6 changed files with 2 additions and 16 deletions
|
|
@ -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)?)?;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}'.");
|
||||
|
|
|
|||
Reference in a new issue