Documentation
¶
Index ¶
- func NewCommandRunner(filter *Filter, sh shell.Shell, handler RepoHandler) func(cmd *cobra.Command, args []string) error
- func NewCommandRunnerForExistingRepos(filter *Filter, sh shell.Shell, handler RepoHandler) func(cmd *cobra.Command, args []string) error
- func ParseNegated(value string) (bool, string)
- type Filter
- type ParallelRunner
- type ProcessResult
- type Progress
- type ProgressBarProgress
- type RepoHandler
- type RunContext
- type Runner
- type SequentialRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandRunner ¶ added in v0.10.0
func NewCommandRunnerForExistingRepos ¶ added in v0.10.0
func ParseNegated ¶ added in v0.7.0
ParseNegated gets a string value and analyzes if it is negated or not - effectively, if it starts with a prefix or not.
It returns a bool flag and a clean value, without the prefix even for negated value
Types ¶
type ParallelRunner ¶ added in v0.1.1
type ParallelRunner struct {
// contains filtered or unexported fields
}
func (*ParallelRunner) Run ¶ added in v0.1.1
func (r *ParallelRunner) Run( ctx context.Context, repos []settings.Repo, handler RepoHandler, ) (map[string]ProcessResult, error)
type ProcessResult ¶
type ProcessResult struct { Result interface{} Error error }
type Progress ¶ added in v0.3.0
type Progress interface { // IncrProgress increase current progress with 1 IncrProgress() // IncrErrors increments number of errors happened during the process IncrErrors() // IndicateTermination makes progress indicate that bulker received "SIGINT" and terminates gracefully IndicateTermination() }
type ProgressBarProgress ¶ added in v0.3.0
type ProgressBarProgress struct {
// contains filtered or unexported fields
}
func (*ProgressBarProgress) IncrErrors ¶ added in v0.10.0
func (p *ProgressBarProgress) IncrErrors()
func (*ProgressBarProgress) IncrProgress ¶ added in v0.10.0
func (p *ProgressBarProgress) IncrProgress()
func (*ProgressBarProgress) IndicateTermination ¶ added in v0.7.0
func (p *ProgressBarProgress) IndicateTermination()
type RepoHandler ¶
type RepoHandler func(ctx context.Context, runContext *RunContext) (interface{}, error)
type RunContext ¶
type Runner ¶
type Runner interface {
Run(ctx context.Context, repos []settings.Repo, handler RepoHandler) (map[string]ProcessResult, error)
}
type SequentialRunner ¶ added in v0.1.1
type SequentialRunner struct {
// contains filtered or unexported fields
}
func (*SequentialRunner) Run ¶ added in v0.1.1
func (r *SequentialRunner) Run( ctx context.Context, repos []settings.Repo, handler RepoHandler, ) (map[string]ProcessResult, error)
Click to show internal directories.
Click to hide internal directories.