Added missing meta tags for gittowork

Also fixed some typos in the function.
pull/745/head
Nils Winkler 2016-06-21 13:16:43 +02:00
parent 7b5502e6f6
commit 932a951294
1 changed files with 4 additions and 2 deletions

View File

@ -201,11 +201,13 @@ fi
function gittowork() {
about 'Places the latest .gitignore file for a given project type in the current directory, or concatenates onto an existing .gitignore'
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
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
echo "$result"
else