Documentation
¶
Overview ¶
Package config handles configuration and command line argument parsing for ghprmerge.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHelp = flag.ErrHelp
ErrHelp is returned when -help or -h is passed.
View Source
var ErrVersion = errors.New("version requested")
ErrVersion is returned when --version is passed.
Functions ¶
This section is empty.
Types ¶
type CommandDescription ¶ added in v0.4.1
type Config ¶
type Config struct {
Org string
SourceBranches []string
SourceBranch string // First source branch (for backward compat in merger)
Rebase bool
Merge bool
SkipRebase bool
Repos []string
RepoLimit int
JSON bool
Confirm bool
Verbose bool
NoColor bool
NoProgress bool
Token string
Report bool
SourceBranchPrefix []string
MinGroupSize int
Verbosity string
Command Command
}
Config holds all configuration for ghprmerge.
func ParseFlags ¶
ParseFlags parses command-line flags and environment variables. Supports subcommands: merge, rebase, report Usage: ghprmerge [global-flags] <command> [command-flags]
func (*Config) IsAnalysisOnly ¶
IsAnalysisOnly returns true if neither rebase nor merge subcommand is used.
type StringSliceFlag ¶
type StringSliceFlag []string
StringSliceFlag is a custom flag type that collects multiple string values.
func (*StringSliceFlag) Set ¶
func (s *StringSliceFlag) Set(value string) error
func (*StringSliceFlag) String ¶
func (s *StringSliceFlag) String() string
Click to show internal directories.
Click to hide internal directories.