Documentation
¶
Index ¶
- Variables
- func RepoMap(ctx context.Context) (map[string][]*Repository, error)
- func Verbose(ctx context.Context) bool
- func WithExcludes(ctx context.Context, repos []*Repository) context.Context
- func WithRepos(ctx context.Context, repos []*github.Repository) context.Context
- func WithVerbose(ctx context.Context, verbose bool) context.Context
- type Client
- func (c *Client) Add(ctx context.Context, dirs []string, name, baseURL string) error
- func (c *Client) Branches(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) CheckoutRepos(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) CloneRepos(ctx context.Context, baseDir string) ([]*Repository, error)
- func (c *Client) CommitRepos(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) DiffRepos(ctx context.Context, dirs []string, cfg *DiffConfig) error
- func (c *Client) GetBranchAndTagNames(ctx context.Context, dirs []string) ([]string, error)
- func (c *Client) GetBranchNames(ctx context.Context, dirs []string) ([]string, error)
- func (c *Client) GetDirs(ctx context.Context, baseDir string) ([]string, error)
- func (c *Client) GetLogins(ctx context.Context) ([]string, error)
- func (c *Client) GetRemoteNames(ctx context.Context, dirs []string) ([]string, error)
- func (c *Client) GetRepos(ctx context.Context, name string) ([]*github.Repository, error)
- func (c *Client) GetTagNames(ctx context.Context, dirs []string) ([]string, error)
- func (c *Client) ListBranches(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) ListTags(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) LogRepos(ctx context.Context, dirs []string, ignoreEmpty bool, args ...string) error
- func (c *Client) PullRepos(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) PushRepos(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) Remotes(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) Remove(ctx context.Context, dirs []string, name string) error
- func (c *Client) SetURLs(ctx context.Context, dirs []string, name, baseURL string) error
- func (c *Client) StageFiles(ctx context.Context, dirs []string, args ...string) error
- func (c *Client) StatusRepos(ctx context.Context, dirs []string, ignoreEmpty bool, args ...string) error
- func (c *Client) TagRepos(ctx context.Context, dirs []string, args ...string) error
- type Clienter
- type DiffConfig
- type Repository
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrReposNotFoundInContext = errors.New("repos map not found in context")
)
Functions ¶
func WithExcludes ¶
func WithExcludes(ctx context.Context, repos []*Repository) context.Context
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckoutRepos ¶
func (*Client) CloneRepos ¶
func (*Client) CommitRepos ¶ added in v0.0.4
func (*Client) GetBranchAndTagNames ¶ added in v0.0.4
func (*Client) GetBranchNames ¶ added in v0.0.4
func (*Client) GetRemoteNames ¶ added in v0.0.4
func (*Client) GetTagNames ¶ added in v0.0.4
func (*Client) ListBranches ¶ added in v0.0.2
func (*Client) StageFiles ¶ added in v0.0.4
func (*Client) StatusRepos ¶ added in v0.0.4
type Clienter ¶ added in v0.0.2
type Clienter interface {
Add(ctx context.Context, dirs []string, name, baseURL string) error
Branches(ctx context.Context, repoDirs []string, args ...string) error
CheckoutRepos(ctx context.Context, repoDirs []string, args ...string) error
CloneRepos(ctx context.Context, dir string) ([]*Repository, error)
CommitRepos(ctx context.Context, dirs []string, args ...string) error
DiffRepos(ctx context.Context, repoDirs []string, cfg *DiffConfig) error
GetBranchAndTagNames(ctx context.Context, dirs []string) ([]string, error)
GetBranchNames(ctx context.Context, dirs []string) ([]string, error)
GetDirs(ctx context.Context, dir string) ([]string, error)
GetLogins(ctx context.Context) ([]string, error)
GetRemoteNames(ctx context.Context, dirs []string) ([]string, error)
GetRepos(ctx context.Context, name string) ([]*github.Repository, error)
GetTagNames(ctx context.Context, dirs []string) ([]string, error)
ListTags(ctx context.Context, repoDirs []string, args ...string) error
LogRepos(ctx context.Context, repoDirs []string, ignoreEmtpy bool, args ...string) error
PullRepos(ctx context.Context, repoDirs []string, args ...string) error
PushRepos(ctx context.Context, repoDirs []string, args ...string) error
Remotes(ctx context.Context, repoDirs []string, args ...string) error
Remove(ctx context.Context, dirs []string, name string) error
SetURLs(ctx context.Context, repoDirs []string, name, baseURL string) error
StageFiles(ctx context.Context, dirs []string, args ...string) error
StatusRepos(ctx context.Context, dirs []string, ignoreEmpty bool, args ...string) error
TagRepos(ctx context.Context, repoDirs []string, args ...string) error
}
type DiffConfig ¶ added in v0.0.3
type Repository ¶ added in v0.0.2
type Repository struct {
// contains filtered or unexported fields
}
Source Files
¶
- client.go
- clienter.go
- context.go
- remotes.go
- remotes_add.go
- remotes_remove.go
- remotes_seturls.go
- repos_branch.go
- repos_branch_names.go
- repos_branch_tag_names.go
- repos_checkout.go
- repos_clone.go
- repos_commit.go
- repos_diff.go
- repos_dirs.go
- repos_get.go
- repos_log.go
- repos_pull.go
- repos_push.go
- repos_remotes_names.go
- repos_stage.go
- repos_status.go
- repos_tag.go
- repos_tag_names.go
Click to show internal directories.
Click to hide internal directories.