Documentation ¶
Index ¶
- Variables
- type Bitbucket
- type DefaultProvider
- func (d *DefaultProvider) Clone(whitelist []string, hasFile, contentRegex string) error
- func (d *DefaultProvider) CommandEachMatchingFile(command, fileRegex, pathRegex string, contentRegex []string) error
- func (d *DefaultProvider) Git(gitArgs []string) error
- func (d *DefaultProvider) PR(repos []string, prMode string) error
- func (d *DefaultProvider) Replace(regex, with, fileRegex, pathRegex string, contentRegex []string) error
- func (d *DefaultProvider) ShouldProcessRepo(path string) (bool, error)
- func (d *DefaultProvider) WorkDir() string
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingWithFlag = fmt.Errorf("missing --with flag to replace with") ErrMissingRegexpFlag = fmt.Errorf("missing --regexp flag to find what to replace") )
View Source
var ErrNoProviderFound = fmt.Errorf("no provider found")
Functions ¶
This section is empty.
Types ¶
type Bitbucket ¶
type Bitbucket struct { DefaultProvider BitbucketURL string }
func NewBitbucket ¶
type DefaultProvider ¶
func (*DefaultProvider) Clone ¶
func (d *DefaultProvider) Clone(whitelist []string, hasFile, contentRegex string) error
func (*DefaultProvider) CommandEachMatchingFile ¶
func (d *DefaultProvider) CommandEachMatchingFile(command, fileRegex, pathRegex string, contentRegex []string) error
func (*DefaultProvider) Git ¶
func (d *DefaultProvider) Git(gitArgs []string) error
func (*DefaultProvider) Replace ¶
func (d *DefaultProvider) Replace(regex, with, fileRegex, pathRegex string, contentRegex []string) error
func (*DefaultProvider) ShouldProcessRepo ¶
func (d *DefaultProvider) ShouldProcessRepo(path string) (bool, error)
func (*DefaultProvider) WorkDir ¶
func (d *DefaultProvider) WorkDir() string
type Provider ¶
type Provider interface { Clone(whitelist []string, hasFile, contentRegex string) error Git(args []string) error PR(repos []string, prMode string) error Replace(regexp, with, fileRegexp, pathRegex string, contentRegex []string) error ShouldProcessRepo(path string) (bool, error) WorkDir() string CommandEachMatchingFile(command, fileRegex, pathRegex string, contentRegex []string) error }
func GetProvider ¶
Click to show internal directories.
Click to hide internal directories.