From 5a9333475518c3a7d9396d120e07d813252a0a09 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 2 Nov 2022 01:39:19 -0700 Subject: pds: refactoring --- adenosine-pds/src/bin/adenosine-pds.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'adenosine-pds/src/bin') diff --git a/adenosine-pds/src/bin/adenosine-pds.rs b/adenosine-pds/src/bin/adenosine-pds.rs index 0159ab7..cfae0ca 100644 --- a/adenosine-pds/src/bin/adenosine-pds.rs +++ b/adenosine-pds/src/bin/adenosine-pds.rs @@ -51,6 +51,9 @@ enum Command { Import { /// CARv1 file path to import from car_path: std::path::PathBuf, + + /// name of pointer to root of CAR DAG tree. Usually a DID + alias: String, }, /// Helper to print MST keys/docs from a sqlite repo @@ -82,7 +85,10 @@ fn main() -> Result<()> { // TODO: log some config stuff? run_server(port, &opt.blockstore_db_path, &opt.atp_db_path) } - Command::Import { car_path } => load_car_to_sqlite(&opt.blockstore_db_path, &car_path), + // TODO: handle alias + Command::Import { car_path, alias } => { + load_car_to_sqlite(&opt.blockstore_db_path, &car_path) + } Command::Inspect {} => mst::dump_mst_keys(&opt.blockstore_db_path), } } -- cgit v1.2.3