Merge pull request #745 from nwinkler/gittowork-fix

Added missing meta tags for gittowork
pull/749/head
Nils Winkler 2016-06-21 13:19:01 +02:00 committed by GitHub
commit 7532a0594b
1 changed files with 4 additions and 2 deletions

View File

@ -201,11 +201,13 @@ fi
function gittowork() { function gittowork() {
about 'Places the latest .gitignore file for a given project type in the current directory, or concatenates onto an existing .gitignore' about 'Places the latest .gitignore file for a given project type in the current directory, or concatenates onto an existing .gitignore'
group 'git' group 'git'
param '1: the language/type of the project, used for determining the contents of the .gitignore file'
example '$ gittowork java'
result=$(curl -L "Https://www.gitignore.io/api/$1" 2>/dev/null) result=$(curl -L "https://www.gitignore.io/api/$1" 2>/dev/null)
if [[ $result =~ ERROR ]]; then if [[ $result =~ ERROR ]]; then
echo "Query '$1' has no match. See a list of possible queries with 'gittowork List'" echo "Query '$1' has no match. See a list of possible queries with 'gittowork list'"
elif [[ $1 = list ]]; then elif [[ $1 = list ]]; then
echo "$result" echo "$result"
else else