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:
2025-06-17 13:30:34 +01:00
parent ad6e3dddf1
commit d15402bef1
4 changed files with 40 additions and 23 deletions

View File

@@ -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 {