Skip to content

Commit

Permalink
fix help message
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-korneck committed Mar 16, 2021
1 parent 1e8011c commit 32117b8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/getignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (

// getignoreCmd represents the getignore command
var getignoreCmd = &cobra.Command{
Use: "[language ...]",
Use: " [language ...]",
Aliases: []string{"getignore"},
Example: "getignore python go visualstudiocode >> .gitignore",
Short: "print gitignore template for a language",
Expand Down Expand Up @@ -67,20 +67,12 @@ languages from the terminal.
log.Fatalf(err.Error())
}

if err != nil {
return err
}

if output == "" {
log.Warn("output is empty (probably not what you wanted?")
}

fmt.Println(output)

// if _, err := run(args); err != nil {
// return err
// }

return nil
},
}
Expand Down

0 comments on commit 32117b8

Please sign in to comment.