Apparently no need to use the gist
tool as the official gh
CLI supports gists:
% gh gist --help
Work with GitHub gists.
USAGE
gh gist <command> [flags]
CORE COMMANDS
create: Create a new gist
delete: Delete a gist
edit: Edit one of your gists
list: List your gists
view: View a gist
INHERITED FLAGS
--help Show help for command
ARGUMENTS
A gist can be supplied as argument in either of the following formats:
- by ID, e.g. 5b0e0062eb8e9654adad7bb1d81cc75f
- by URL, e.g. "https://gist.github.com/OWNER/5b0e0062eb8e9654adad7bb1d81cc75f"