mirror of
https://github.com/onyx-and-iris/ignr.git
synced 2026-04-18 07:13:33 +00:00
move api list/get calls into runPrompt
add --height/-H flag to new command add template language to template. This may be useful if combining gitignores.
This commit is contained in:
2
main.go
2
main.go
@@ -31,7 +31,7 @@ You may also list available templates and generate .gitignore files based on tho
|
||||
} else {
|
||||
client = github.NewClient(nil).WithAuthToken(viper.GetString("token"))
|
||||
}
|
||||
ctx := context.WithValue(context.Background(), clientKey, client)
|
||||
ctx := withClient(context.Background(), client)
|
||||
cmd.SetContext(ctx)
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, _ []string) error {
|
||||
|
||||
Reference in New Issue
Block a user