mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
@@ -31,15 +31,30 @@ func main() {
|
|||||||
var excludeRepos string
|
var excludeRepos string
|
||||||
var maxRepoSize int
|
var maxRepoSize int
|
||||||
var refresh bool
|
var refresh bool
|
||||||
|
|
||||||
|
// FLAGS
|
||||||
flag.StringVarP(&username, "username", "u", "", "GitHub username to analyze")
|
flag.StringVarP(&username, "username", "u", "", "GitHub username to analyze")
|
||||||
flag.StringVarP(&token, "token", "t", "", "GitHub personal access token (e.g. ghp_...)")
|
flag.StringVarP(&token, "token", "t", "", "GitHub personal access token (e.g. ghp_...)")
|
||||||
flag.StringVarP(&fromEmail, "email", "e", "", "Search accounts by email address")
|
flag.StringVarP(&fromEmail, "email", "e", "", "Search accounts by email address")
|
||||||
|
flag.BoolVarP(
|
||||||
|
&deep,
|
||||||
|
"deep",
|
||||||
|
"d",
|
||||||
|
false,
|
||||||
|
"Enable deep scan (clone repos, regex search, analyse licenses, etc.)",
|
||||||
|
)
|
||||||
flag.IntVar(
|
flag.IntVar(
|
||||||
&maxRepoSize,
|
&maxRepoSize,
|
||||||
"max-size",
|
"max-size",
|
||||||
150,
|
150,
|
||||||
"Limit the size of repositories to scan (in MB) (Only for deep scan)",
|
"Limit the size of repositories to scan (in MB) (Only for deep scan)",
|
||||||
)
|
)
|
||||||
|
flag.StringVar(
|
||||||
|
&excludeRepos,
|
||||||
|
"exclude-repo",
|
||||||
|
"",
|
||||||
|
"Exclude repos from deep scan (comma-separated list)",
|
||||||
|
)
|
||||||
flag.BoolVarP(
|
flag.BoolVarP(
|
||||||
&onlyCommitsLeak,
|
&onlyCommitsLeak,
|
||||||
"only-commits",
|
"only-commits",
|
||||||
@@ -54,22 +69,13 @@ func main() {
|
|||||||
false,
|
false,
|
||||||
"Refresh the cache (deep scan only)",
|
"Refresh the cache (deep scan only)",
|
||||||
)
|
)
|
||||||
flag.BoolVarP(
|
|
||||||
&deep,
|
|
||||||
"deep",
|
|
||||||
"d",
|
|
||||||
false,
|
|
||||||
"Enable deep scan (clone repos, regex search, analyse licenses, etc.)",
|
|
||||||
)
|
|
||||||
flag.BoolVarP(&silent, "silent", "s", false, "Suppress all non-essential output")
|
flag.BoolVarP(&silent, "silent", "s", false, "Suppress all non-essential output")
|
||||||
flag.StringVarP(&jsonFile, "json", "j", "", "Write results to specified JSON file")
|
flag.StringVarP(&jsonFile, "json", "j", "", "Write results to specified JSON file")
|
||||||
flag.StringVar(
|
|
||||||
&excludeRepos,
|
// FLAGS SETTINGS
|
||||||
"exclude-repo",
|
|
||||||
"",
|
|
||||||
"Exclude repos from deep scan (comma-separated list)",
|
|
||||||
)
|
|
||||||
flag.CommandLine.SetNormalizeFunc(wordSepNormalizeFunc)
|
flag.CommandLine.SetNormalizeFunc(wordSepNormalizeFunc)
|
||||||
|
flag.CommandLine.SortFlags = false
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
styles := log.DefaultStyles()
|
styles := log.DefaultStyles()
|
||||||
|
|||||||
Reference in New Issue
Block a user