client

package
v0.0.0-...-84ce4bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundInContext = errors.New("repos map not found in context")
)
View Source
var (
	ErrUnstagedChanges = errors.New("unstanged changes")
)

Functions

func Excludes

func Excludes(ctx context.Context) ([]*repository, error)

func RepoMap

func RepoMap(ctx context.Context) (map[string][]*repository, error)

func WithExcludes

func WithExcludes(ctx context.Context, repos []*repository) context.Context

func WithRepos

func WithRepos(ctx context.Context, repos []*github.Repository) context.Context

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) (*Client, error)

func (*Client) CheckoutRepos

func (c *Client) CheckoutRepos(ctx context.Context, dirs []string, args []string) error

func (*Client) CloneRepos

func (c *Client) CloneRepos(ctx context.Context) ([]*repository, error)

func (*Client) GetDirs

func (c *Client) GetDirs(ctx context.Context, baseDir string) ([]string, error)

func (*Client) GetLogins

func (c *Client) GetLogins(ctx context.Context) ([]string, error)

func (*Client) GetRepos

func (c *Client) GetRepos(ctx context.Context, name string) ([]*github.Repository, error)

func (*Client) PullRepos

func (c *Client) PullRepos(ctx context.Context, dirs []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL