Skip to main content

Module editor

Module editor 

Source
Expand description

$EDITOR integration for commands that compose a body (issue / PR / release create). Writes a temp file with prefill, launches the editor, then reads the file back. Empty contents ⇒ abort, matching gh’s behavior.

Functions§

compose
Open $EDITOR (defaulting to vi) on a temp file containing prefill. Returns the saved contents, or an error if the user saved an empty file.