Last active
October 29, 2020 20:20
-
-
Save dengsauve/01b76e81a23209d9455399e64da058b4 to your computer and use it in GitHub Desktop.
GitHub CLI Issue Command Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love gh cli, but I don't like typing out/remembering all the flags and arguments.