cli

package
v0.0.0-...-00f684b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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

func RunOrg

func RunOrg(r *cmd.Root, c *cmd.Sub)

func RunRepo

func RunRepo(r *cmd.Root, c *cmd.Sub)

Types

type GlobalFlags

type GlobalFlags struct{}

GlobalFlags contains the flags for commands.

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)."`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL