Merge pull request #9 from Snider/feat-mkdocs-site

Feat mkdocs site
This commit is contained in:
Snider 2025-11-02 16:02:50 +00:00 committed by GitHub
commit 13b971da7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,28 @@
package cmd
import (
"fmt"
"github.com/Snider/Borg/pkg/github"
"github.com/spf13/cobra"
)
var collectGithubReposCmd = &cobra.Command{
Use: "repos [user-or-org]",
Short: "Collects all public repositories for a user or organization",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
repos, err := github.GetPublicRepos(cmd.Context(), args[0])
if err != nil {
return err
}
for _, repo := range repos {
fmt.Println(repo)
}
return nil
},
}
func init() {
collectGithubCmd.AddCommand(collectGithubReposCmd)
}