Skip to content

Instantly share code, notes, and snippets.

@dengsauve
Last active October 29, 2020 20:20
Show Gist options
  • Save dengsauve/01b76e81a23209d9455399e64da058b4 to your computer and use it in GitHub Desktop.
Save dengsauve/01b76e81a23209d9455399e64da058b4 to your computer and use it in GitHub Desktop.
GitHub CLI Issue Command Generator
# Make sure to change LOGIN to your user name
output = "gh issue create -a LOGIN "
args = []
arglist = [
['repo [OWNER/REPO]', '--repo'],
['title', '--title'],
['body', '--body'],
['label [bug, feature, etc] csv in string', '--label'],
['project', '--project'],
]
arglist.each do |arg|
print arg[0] + ': '
input = gets.chomp
args << "#{arg[1]} \"#{input}\""
end
output += args.join(' ')
puts
puts output
puts
@dengsauve
Copy link
Author

I love gh cli, but I don't like typing out/remembering all the flags and arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment