summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/bin/adenosine-pds.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-02 01:39:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-11-02 01:39:19 -0700
commit5a9333475518c3a7d9396d120e07d813252a0a09 (patch)
treed38b3faa7e334e7674f6819f855b5dbbcb9eb180 /adenosine-pds/src/bin/adenosine-pds.rs
parentf3fdc7ba600c65fdb05efc2fd5e9a651b4b9956e (diff)
downloadadenosine-5a9333475518c3a7d9396d120e07d813252a0a09.tar.gz
adenosine-5a9333475518c3a7d9396d120e07d813252a0a09.zip
pds: refactoring
Diffstat (limited to 'adenosine-pds/src/bin/adenosine-pds.rs')
-rw-r--r--adenosine-pds/src/bin/adenosine-pds.rs8
1 files changed, 7 insertions, 1 deletions
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),
}
}