Skip to content

Commit 0160824

Browse files
docs: escapes special characters in source description (#547)
go
1 parent ebd9ae5 commit 0160824

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewCommand(clients *shared.ClientFactory) *cobra.Command {
5757
"",
5858
"Body format is auto-detected from positional arguments:",
5959
" - Multiple key=value args: form-encoded (token in request body)",
60-
" - Single arg starting with { or [: JSON (Bearer token in header)",
60+
" - Single arg starting with \\{ or \\[: JSON (Bearer token in header)",
6161
" - No args: token sent in Authorization header",
6262
"",
6363
"Use --json to explicitly send a JSON body, or --data for a form-encoded body string.",

docs/reference/commands/slack_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Parameters are passed as key=value pairs, a JSON body, or via flags.
1111

1212
Body format is auto-detected from positional arguments:
1313
- Multiple key=value args: form-encoded (token in request body)
14-
- Single arg starting with { or [: JSON (Bearer token in header)
14+
- Single arg starting with \{ or \[: JSON (Bearer token in header)
1515
- No args: token sent in Authorization header
1616

1717
Use --json to explicitly send a JSON body, or --data for a form-encoded body string.

0 commit comments

Comments
 (0)