From 5c75c1c48a4953c563aef7691b680f37f24be41c Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Tue, 17 Mar 2026 12:03:12 -0400 Subject: [PATCH] Fix `buf curl` example rendering No reason for the `\` characters to be so many spaces away. --- cmd/buf/internal/command/curl/curl.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/buf/internal/command/curl/curl.go b/cmd/buf/internal/command/curl/curl.go index 633a520378..b5fc6767e5 100644 --- a/cmd/buf/internal/command/curl/curl.go +++ b/cmd/buf/internal/command/curl/curl.go @@ -150,26 +150,26 @@ Examples: Issue a unary RPC to a plain-text (i.e. "h2c") gRPC server, where the schema for the service is in a Buf module in the current directory, using an empty request message: - $ buf curl --schema . --protocol grpc --http2-prior-knowledge \ + $ buf curl --schema . --protocol grpc --http2-prior-knowledge \ http://localhost:20202/foo.bar.v1.FooService/DoSomething Issue an RPC to a Connect server, where the schema comes from the Buf Schema Registry, using a request that is defined as a command-line argument: - $ buf curl --schema buf.build/connectrpc/eliza \ - --data '{"name": "Bob Loblaw"}' \ + $ buf curl --schema buf.build/connectrpc/eliza \ + --data '{"name": "Bob Loblaw"}' \ https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Introduce Issue a unary RPC to a server that supports reflection, with verbose output: - $ buf curl --data '{"sentence": "I am not feeling well."}' -v \ - https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say + $ buf curl --data '{"sentence": "I am not feeling well."}' -v \ + https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say Issue a client-streaming RPC to a gRPC-web server that supports reflection, where custom headers and request data are both in a heredoc: - $ buf curl --data @- --header @- --protocol grpcweb \ - https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Converse \ + $ buf curl --data @- --header @- --protocol grpcweb \ + https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Converse \ <