summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()),