Documentation
¶
Index ¶
- type CLI
- func (c *CLI) Confirmation(actionText, cancellationMessage, successMessage string) (bool, error)
- func (c *CLI) Input() (string, error)
- func (c *CLI) PrintColorizedLine(title, content string, level ergo.MessageLevel)
- func (c *CLI) PrintLine(content ...interface{})
- func (c *CLI) PrintTable(header []string, values [][]string)
- type RepositoryClient
- func (r *RepositoryClient) CompareBranch(ctx context.Context, baseBranch, branch string) (*ergo.StatusReport, error)
- func (r *RepositoryClient) CreateDraftRelease(ctx context.Context, name, tagName, releaseBody, targetBranch string) error
- func (r *RepositoryClient) CreateTag(ctx context.Context, versionName, sha, m string) (*ergo.Tag, error)
- func (r *RepositoryClient) DiffCommits(ctx context.Context, releaseBranches []string, baseBranch string) ([]*ergo.StatusReport, error)
- func (r *RepositoryClient) EditRelease(ctx context.Context, release *ergo.Release) (*ergo.Release, error)
- func (r *RepositoryClient) GetRef(ctx context.Context, branch string) (*ergo.Reference, error)
- func (r *RepositoryClient) GetRefFromTag(ctx context.Context, tag string) (*ergo.Reference, error)
- func (r *RepositoryClient) GetRepoName() string
- func (r *RepositoryClient) LastRelease(ctx context.Context) (*ergo.Release, error)
- func (r *RepositoryClient) UpdateBranchFromTag(ctx context.Context, tag, toBranch string, force bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
MockConfirmation func() (bool, error)
ConfirmationCalls int
// contains filtered or unexported fields
}
CLI is a mock implementation.
func (*CLI) Confirmation ¶
Confirmation is a mock implementation.
func (*CLI) PrintColorizedLine ¶
func (c *CLI) PrintColorizedLine(title, content string, level ergo.MessageLevel)
PrintColorizedLine is a mock implementation.
func (*CLI) PrintLine ¶
func (c *CLI) PrintLine(content ...interface{})
PrintLine is a mock implementation.
func (*CLI) PrintTable ¶
PrintTable is a mock implementation.
type RepositoryClient ¶
type RepositoryClient struct {
MockCreateDraftReleaseFn func() error
MockLastReleaseFn func() (*ergo.Release, error)
MockEditReleaseFn func() (*ergo.Release, error)
MockCompareBranchFn func() (*ergo.StatusReport, error)
MockDiffCommitsFn func() ([]*ergo.StatusReport, error)
MockCreateTagFn func() (*ergo.Tag, error)
MockUpdateBranchFromTagFn func() error
MockGetRefFn func() (*ergo.Reference, error)
MockGetRefFromTagFn func() (*ergo.Reference, error)
MockGetRepoNameFn func() string
}
RepositoryClient is a mock implementation.
func (*RepositoryClient) CompareBranch ¶
func (r *RepositoryClient) CompareBranch(ctx context.Context, baseBranch, branch string) (*ergo.StatusReport, error)
CompareBranch is a mock implementation.
func (*RepositoryClient) CreateDraftRelease ¶
func (r *RepositoryClient) CreateDraftRelease(ctx context.Context, name, tagName, releaseBody, targetBranch string) error
CreateDraftRelease is a mock implementation.
func (*RepositoryClient) CreateTag ¶
func (r *RepositoryClient) CreateTag(ctx context.Context, versionName, sha, m string) (*ergo.Tag, error)
CreateTag is a mock implementation.
func (*RepositoryClient) DiffCommits ¶
func (r *RepositoryClient) DiffCommits(ctx context.Context, releaseBranches []string, baseBranch string) ([]*ergo.StatusReport, error)
DiffCommits is a mock implementation.
func (*RepositoryClient) EditRelease ¶
func (r *RepositoryClient) EditRelease(ctx context.Context, release *ergo.Release) (*ergo.Release, error)
EditRelease is a mock implementation.
func (*RepositoryClient) GetRefFromTag ¶
GetRefFromTag is a mock implementation.
func (*RepositoryClient) GetRepoName ¶
func (r *RepositoryClient) GetRepoName() string
GetRepoName is a mock implementation.
func (*RepositoryClient) LastRelease ¶
LastRelease is a mock implementation.
func (*RepositoryClient) UpdateBranchFromTag ¶
func (r *RepositoryClient) UpdateBranchFromTag(ctx context.Context, tag, toBranch string, force bool) error
UpdateBranchFromTag is a mock implementation.
Click to show internal directories.
Click to hide internal directories.