sync

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DepbotApiKey     = "DEPBOT_API_KEY"
	DepbotServerAddr = "DEPBOT_SERVER_ADDR"
)

Variables

View Source
var (
	// ErrorMissingApiKey is an error that will be returned if the API key is missing
	ErrorMissingApiKey error = fmt.Errorf("missing api key")
	// ErrorNoSyncDep is an error that will be returned if the dependencies could not be synchronized
	ErrorNoSyncDep error = fmt.Errorf("could not sync the dependencies")
)

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(finders ...depbot.FinderFn) *Command

NewCommand with the given finder function.

func (*Command) HelpText

func (c *Command) HelpText() string

func (*Command) Main

func (c *Command) Main(ctx context.Context, pwd string, args []string) error

func (*Command) Name

func (c *Command) Name() string

func (*Command) ParseFlags

func (c *Command) ParseFlags(args []string) (*flag.FlagSet, error)

func (*Command) SetClient

func (c *Command) SetClient(client *http.Client)

func (*Command) SetIO

func (c *Command) SetIO(stderr io.Writer, stdout io.Writer, stdin io.Reader)

func (*Command) WithRevisionFinder

func (s *Command) WithRevisionFinder(finder func(string) (string, error))

WithRevisionFinder is Useful for testing purposes so we can replace the Revision finder

Jump to

Keyboard shortcuts

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