From 29f2b072a6395edf8527de9a5ae76d53a045819c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 10 Feb 2021 13:28:38 -0800 Subject: search output: use full ident/specifier --- fatcat-cli/src/commands.rs | 8 ++++---- 1 file 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()), -- cgit v1.2.3