Editing a status¶
taibai edit replaces the text of one of your existing statuses.
Basic edit¶
Pass the status URL or ID followed by the new text:
taibai edit 109031952222346765 "Corrected text."
taibai edit https://mastodon.social/@you/109031952222346765 "Corrected text."
The URL of the updated status is printed on success:
Reading from a file¶
Use --file to supply the replacement text from a file:
--file is mutually exclusive with a positional text argument.
Reading from stdin¶
Pass - as the text argument to read from standard input:
Content warning¶
Replace or add a content warning with --cw:
Sensitive media¶
Mark attached media as sensitive with --sensitive:
JSON output¶
Pass --json to dump the edited status as JSON instead of printing its URL:
taibai edit 109031952222346765 "New text." --json
taibai edit 109031952222346765 "New text." --json | jq '.url'
Options reference¶
| Option | Short | Default | Description |
|---|---|---|---|
STATUS_ID |
— | — | Status URL or bare numeric ID |
TEXT |
— | — | Replacement text; use - to read from stdin |
--file |
— | — | Read replacement text from a file (exclusive with TEXT) |
--cw |
— | — | Content warning / subject line |
--sensitive |
— | off | Mark attached media as sensitive |
--json |
— | off | Dump the edited status as JSON instead of printing its URL |
--profile |
-p |
default |
Profile name (TAIBAI_PROFILE env var) |