mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 19:08:24 +02:00
33 lines
488 B
Go
33 lines
488 B
Go
package ghrecon
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/charmbracelet/log"
|
|
"github.com/google/go-github/v72/github"
|
|
)
|
|
|
|
type Recon struct {
|
|
client *github.Client
|
|
logger *log.Logger
|
|
ctx context.Context
|
|
silent bool
|
|
jsonFile string
|
|
}
|
|
|
|
func NewRecon(
|
|
client *github.Client,
|
|
logger *log.Logger,
|
|
ctx context.Context,
|
|
silent bool,
|
|
jsonFile string,
|
|
) *Recon {
|
|
return &Recon{
|
|
client: client,
|
|
logger: logger,
|
|
ctx: ctx,
|
|
silent: silent,
|
|
jsonFile: jsonFile,
|
|
}
|
|
}
|