client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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