Mirror von
https://github.com/Chaoscaot/schemsearch
synchronisiert 2024-11-16 17:00:14 +01:00
🛠️ Fix incorrect CSV format in OutputFormat::CSV. (#10)
Dieser Commit ist enthalten in:
Ursprung
d20940f89b
Commit
82108d9e36
2
schemsearch-cli/src/sinks.rs
Normale Datei → Ausführbare Datei
2
schemsearch-cli/src/sinks.rs
Normale Datei → Ausführbare Datei
@ -71,7 +71,7 @@ impl OutputFormat {
|
|||||||
pub fn start(&self, total: u32, search_behavior: &SearchBehavior, start_time: u128) -> String {
|
pub fn start(&self, total: u32, search_behavior: &SearchBehavior, start_time: u128) -> String {
|
||||||
match self {
|
match self {
|
||||||
OutputFormat::Text => format!("Starting search in {} schematics\n", total),
|
OutputFormat::Text => format!("Starting search in {} schematics\n", total),
|
||||||
OutputFormat::CSV => format!("Name,X,Y,Z,Percent\n"),
|
OutputFormat::CSV => "Name,X,Y,Z,Percent\n".to_owned(),
|
||||||
OutputFormat::JSON => format!("{}\n", serde_json::to_string(&JsonEvent::Init(InitEvent {
|
OutputFormat::JSON => format!("{}\n", serde_json::to_string(&JsonEvent::Init(InitEvent {
|
||||||
total,
|
total,
|
||||||
search_behavior: search_behavior.clone(),
|
search_behavior: search_behavior.clone(),
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren