Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Org = cmd.Sub{ Name: "org", Alias: "o", Short: "Generate stats (json) for org projects.", Flags: &OrgFlags{}, Args: &OrgArgs{}, Run: RunOrg, }
View Source
var Repo = cmd.Sub{ Name: "repo", Alias: "r", Short: "Generate stats (json) for repositories.", Flags: &RepoFlags{}, Args: &RepoArgs{}, Run: RunRepo, }
View Source
var Root *cmd.Root
Root is the main command.
Functions ¶
Types ¶
type OrgArgs ¶
type OrgArgs struct {
Orgs []string `desc:"One or more GitHub organization names to parse."`
}
Args and flags
type OrgFlags ¶
type OrgFlags struct {
Pretty bool `long:"pretty" desc:"If printing to the terminal, print it pretty."`
Pattern string `long:"pattern" desc:"Only include repos that match this regular expression."`
SkipPattern string `long:"skip" desc:"Skip repositories that match this pattern."`
Outfile string `long:"outfile" desc:"Save output to file."`
Config string `long:"config" desc:"Provide a config to select metrics."`
Metric string `long:"metric" desc:"A single metrics to provide on command line (overrides config)."`
}
type RepoArgs ¶
type RepoArgs struct {
Repos []string `desc:"One or more GitHub repository names to parse."`
}
Args and flags
type RepoFlags ¶
type RepoFlags struct {
Pretty bool `long:"pretty" desc:"If printing to the terminal, print it pretty."`
Outfile string `long:"outfile" desc:"Save output to file."`
Config string `long:"config" desc:"Provide a config to select metrics."`
Metric string `long:"metric" desc:"A single metrics to provide on command line (overrides config)."`
}
Click to show internal directories.
Click to hide internal directories.