Documentation
¶
Index ¶
- func RunDiff(ctx context.Context, cfg *config.Config, outMode string, a parse.DiffArgs, ...) error
- func RunDo(ctx context.Context, cfg *config.Config, outMode string, a parse.DoArgs, ...) error
- func RunFetch(ctx context.Context, cfg *config.Config, outMode string, a parse.FetchArgs, ...) error
- func RunGrep(ctx context.Context, cfg *config.Config, outMode string, a parse.GrepArgs, ...) error
- func RunList(ctx context.Context, cfg *config.Config, outMode string, _ parse.ListArgs, ...) error
- func RunLsFiles(ctx context.Context, cfg *config.Config, outMode string, a parse.LsFilesArgs, ...) error
- func RunPull(ctx context.Context, cfg *config.Config, outMode string, a parse.PullArgs, ...) error
- func RunRead(ctx context.Context, cfg *config.Config, outMode string, a parse.ReadArgs, ...) error
- func RunStatus(ctx context.Context, cfg *config.Config, outMode string, a parse.StatusArgs, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunDiff ¶
func RunDiff( ctx context.Context, cfg *config.Config, outMode string, a parse.DiffArgs, finder repo.Finder, r iterRunner.Runner, stdout, stderr io.Writer, ) error
RunDiff executes the "diff" subcommand logic. finder is expected to already be filtered by DiffArgs.Patterns and dirty/clean filter. r is the runner used to execute git diff in each repository.
func RunDo ¶
func RunDo( ctx context.Context, cfg *config.Config, outMode string, a parse.DoArgs, finder repo.Finder, r iterRunner.Runner, stdout, stderr io.Writer, ) error
RunDo executes the "do" subcommand logic. finder is expected to already be filtered by DoArgs.Patterns. r is the runner used to execute the command in each repository.
func RunFetch ¶
func RunFetch( ctx context.Context, cfg *config.Config, outMode string, a parse.FetchArgs, finder repo.Finder, r iterRunner.Runner, stdout, stderr io.Writer, ) error
RunFetch executes the "fetch" subcommand logic. finder is expected to already be filtered by FetchArgs.Patterns. r is the runner used to execute git fetch in each repository.
func RunGrep ¶
func RunGrep( ctx context.Context, cfg *config.Config, outMode string, a parse.GrepArgs, finder repo.Finder, innerRunner iterRunner.Runner, stdout, stderr io.Writer, ) error
RunGrep executes the "grep" subcommand logic. finder is expected to already be filtered by GrepArgs.Patterns. innerRunner is the base runner wrapped by GrepRunner for each repository.
func RunList ¶
func RunList( ctx context.Context, cfg *config.Config, outMode string, _ parse.ListArgs, finder repo.Finder, stdout io.Writer, ) error
RunList executes the "list" subcommand logic. finder is expected to already be filtered by ListArgs.Patterns.
func RunLsFiles ¶
func RunLsFiles( ctx context.Context, cfg *config.Config, outMode string, a parse.LsFilesArgs, finder repo.Finder, innerRunner iterRunner.Runner, showAbsPath bool, stdout, stderr io.Writer, ) error
RunLsFiles executes the "ls-files" subcommand logic. finder is expected to already be filtered by LsFilesArgs.Patterns. showAbsPath overrides cfg.AbsPath if true. innerRunner executes git commands.
func RunPull ¶
func RunPull( ctx context.Context, cfg *config.Config, outMode string, a parse.PullArgs, finder repo.Finder, r iterRunner.Runner, stdout, stderr io.Writer, ) error
RunPull executes the "pull" subcommand logic. finder is expected to already be filtered by PullArgs.Patterns. r is the runner used to execute git pull in each repository.
func RunRead ¶
func RunRead( ctx context.Context, cfg *config.Config, outMode string, a parse.ReadArgs, finder repo.Finder, r iterRunner.Runner, stdout, stderr io.Writer, ) error
RunRead executes the "read" subcommand logic. finder supplies the repository paths (typically a StdinFinder in production). r is the runner used to execute the command in each repository.
func RunStatus ¶
func RunStatus( ctx context.Context, cfg *config.Config, outMode string, a parse.StatusArgs, finder repo.Finder, r iterRunner.Runner, stdout, stderr io.Writer, ) error
RunStatus executes the "status" subcommand logic. finder is expected to already be filtered by StatusArgs.Patterns and dirty/clean filter. r is the runner used to execute git status in each repository.
Types ¶
This section is empty.