action

package
v0.0.0-...-39bc41e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Perform(output message.Printer) error
}

func NewSetupAction

func NewSetupAction(configLoader config.Loader,
	repo repo.Repo,
	workspace workspace.Workspace) Action

func NewUpdateAction

func NewUpdateAction(repo repo.Repo, workspace workspace.Workspace) Action

type CleanupRepoAction

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

func NewCleanupRepoAction

func NewCleanupRepoAction(localPath string, repo repo.Repo) *CleanupRepoAction

func (*CleanupRepoAction) Perform

func (action *CleanupRepoAction) Perform(output message.Printer) error

type CreateAction

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

func NewCreateAction

func NewCreateAction(checker workspace.DirectoryChecker,
	localPath string,
	merger merger.Merger,
	projectName string,
	repo repo.Repo) *CreateAction

func (*CreateAction) Perform

func (action *CreateAction) Perform(output message.Printer) error

type Factory

type Factory struct {
	LocalPath   string
	ProjectName string
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(localPath string, projectName string, verbose bool) *Factory

func (*Factory) CleanupRepo

func (factory *Factory) CleanupRepo() Action

func (*Factory) Create

func (factory *Factory) Create() Action

func (*Factory) List

func (factory *Factory) List() Action

func (*Factory) Setup

func (factory *Factory) Setup() Action

func (*Factory) Transform

func (factory *Factory) Transform() Action

func (*Factory) Update

func (factory *Factory) Update() Action

type ListAction

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

func NewListAction

func NewListAction(merger merger.Merger) ListAction

func (ListAction) Perform

func (action ListAction) Perform(output message.Printer) error

type SetupAction

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

func (*SetupAction) Perform

func (action *SetupAction) Perform(output message.Printer) error

type TransformAction

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

func NewTransformAction

func NewTransformAction(
	repoPath string,
	checker workspace.DirectoryChecker,
	loader project.Loader,
	transformer transform.Transformer,
	variables transform.Variables) *TransformAction

func (*TransformAction) Perform

func (action *TransformAction) Perform(output message.Printer) error

type UpdateAction

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

func (*UpdateAction) Perform

func (action *UpdateAction) Perform(output message.Printer) error

Jump to

Keyboard shortcuts

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