Update cmd/all.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Snider 2025-11-02 23:08:50 +00:00 committed by GitHub
parent bb6d30122d
commit 854d781965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ var allCmd = &cobra.Command{
fmt.Fprintln(os.Stderr, "Error: logger not properly initialised")
return
}
repos, err := GithubClient.GetPublicRepos(context.Background(), args[0])
repos, err := GithubClient.GetPublicRepos(cmd.Context(), args[0])
if err != nil {
log.Error("failed to get public repos", "err", err)
return