Skip to content

Commit 2532cfb

Browse files
committed
Compact output for signed events
1 parent d502786 commit 2532cfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/src/bin/space-cli.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ async fn handle_commands(cli: &SpaceCli, command: Commands) -> Result<(), Client
868868
};
869869

870870
let result = cli.sign_event(space, event, anchor, false).await?;
871-
println!("{}", serde_json::to_string_pretty(&result).expect("result"));
871+
println!("{}", serde_json::to_string(&result).expect("result"));
872872
}
873873
Commands::SignZone {
874874
space,
@@ -879,7 +879,7 @@ async fn handle_commands(cli: &SpaceCli, command: Commands) -> Result<(), Client
879879
.map_err(|e| ClientError::Custom(format!("Parse error: {}", e)))?;
880880
let result = cli.sign_event(space, update, !skip_anchor, false).await?;
881881

882-
println!("{}", serde_json::to_string_pretty(&result).expect("result"));
882+
println!("{}", serde_json::to_string(&result).expect("result"));
883883
}
884884
Commands::RefreshAnchor {
885885
input,
@@ -904,7 +904,7 @@ async fn handle_commands(cli: &SpaceCli, command: Commands) -> Result<(), Client
904904
event.proof = None;
905905
event = cli.add_anchor(event, prefer_recent).await?;
906906

907-
println!("{}", serde_json::to_string_pretty(&event).expect("result"));
907+
println!("{}", serde_json::to_string(&event).expect("result"));
908908
}
909909
Commands::VerifyEvent { space, input } => {
910910
let event = read_event(input)
@@ -915,7 +915,7 @@ async fn handle_commands(cli: &SpaceCli, command: Commands) -> Result<(), Client
915915
.await
916916
.map_err(|e| ClientError::Custom(e.to_string()))?;
917917

918-
println!("{}", serde_json::to_string_pretty(&event).expect("result"));
918+
println!("{}", serde_json::to_string(&event).expect("result"));
919919
}
920920
}
921921

0 commit comments

Comments
 (0)