mirror of
https://github.com/onyx-and-iris/ignr.git
synced 2026-04-18 07:13:33 +00:00
Compare commits
2 Commits
cfc5e93013
...
v1.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| c05e2e786a | |||
| 5f7a48ee8e |
5
main.go
5
main.go
@@ -25,6 +25,11 @@ It allows users to easily create and manage .gitignore files for various program
|
|||||||
You may also list available templates and generate .gitignore files based on those templates.`,
|
You may also list available templates and generate .gitignore files based on those templates.`,
|
||||||
SilenceUsage: true,
|
SilenceUsage: true,
|
||||||
PersistentPreRun: func(cmd *cobra.Command, _ []string) {
|
PersistentPreRun: func(cmd *cobra.Command, _ []string) {
|
||||||
|
if strings.HasPrefix(cmd.CommandPath(), "ignr completion") ||
|
||||||
|
strings.HasPrefix(cmd.CommandPath(), "ignr help") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var client *github.Client
|
var client *github.Client
|
||||||
if !viper.IsSet("token") || viper.GetString("token") == "" {
|
if !viper.IsSet("token") || viper.GetString("token") == "" {
|
||||||
client = github.NewClient(nil)
|
client = github.NewClient(nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user