Skip to main content

COMMENT_EDIT

Constant COMMENT_EDIT 

Source
pub const COMMENT_EDIT: &str = "\
Replace the text of a comment.

```
ytcli issue comment edit PROJ-1 987654 \"the corrected text\"
ytcli issue comment edit PROJ-1 987654 -
```

The id comes from `ytcli issue comments`. This is a replacement, not an
addition: the whole body is what you pass, and the previous wording is gone —
Tracker keeps no history of it and shows the comment as edited.

`-` reads the body from stdin, which is how a body with newlines in it gets
there.";