summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-02-10 13:28:38 -0800
committerBryan Newbold <bnewbold@archive.org>2021-02-10 13:28:38 -0800
commit29f2b072a6395edf8527de9a5ae76d53a045819c (patch)
tree21a11fec470ebc53731041dffaf487edeaabe512
parente992c92fc1210ba899a114c3007beecc73be8129 (diff)
downloadfatcat-cli-29f2b072a6395edf8527de9a5ae76d53a045819c.tar.gz
fatcat-cli-29f2b072a6395edf8527de9a5ae76d53a045819c.zip
search output: use full ident/specifier
-rw-r--r--fatcat-cli/src/commands.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/fatcat-cli/src/commands.rs b/fatcat-cli/src/commands.rs
index 95b97a0..1a2d33b 100644
--- a/fatcat-cli/src/commands.rs
+++ b/fatcat-cli/src/commands.rs
@@ -280,7 +280,7 @@ pub fn print_search_table(results: SearchResults, entity_type: SearchEntityType)
SearchEntityType::Release => {
writeln!(
tw,
- "release_ident\ttype\tstage\tyear\tcontainer_name\ttitle"
+ "ident\ttype\tstage\tyear\tcontainer_name\ttitle"
)?;
}
SearchEntityType::Container=> {
@@ -302,7 +302,7 @@ pub fn print_search_table(results: SearchResults, entity_type: SearchEntityType)
SearchEntityType::Release => {
writeln!(
tw,
- "{}\t{}\t{}\t{}\t{}\t{}",
+ "release_{}\t{}\t{}\t{}\t{}\t{}",
hit["ident"].as_str().unwrap_or("-"),
hit["release_type"].as_str().unwrap_or("-"),
hit["release_stage"].as_str().unwrap_or("-"),
@@ -314,7 +314,7 @@ pub fn print_search_table(results: SearchResults, entity_type: SearchEntityType)
SearchEntityType::Container => {
writeln!(
tw,
- "{}\t{}\t{}",
+ "release_{}\t{}\t{}",
hit["ident"].as_str().unwrap_or("-"),
hit["issnl"].as_str().unwrap_or("-"),
hit["name"].as_str().unwrap_or("-"),
@@ -323,7 +323,7 @@ pub fn print_search_table(results: SearchResults, entity_type: SearchEntityType)
SearchEntityType::File => {
writeln!(
tw,
- "{}\t{}\t{}\t{}",
+ "release_{}\t{}\t{}\t{}",
hit["ident"].as_str().unwrap_or("-"),
hit["sha1"].as_str().unwrap_or("-"),
hit["size"].as_u64().map_or("-".to_string(), |v| v.to_string()),