action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Action

type Action interface {
	Apply(ctx context.Context) error
	String() string
}

type Factory

type Factory interface {
	Create(params map[string]string, taskPath string) (Action, error)
	Name() string
}

type FileCreateFactory

type FileCreateFactory struct{}

func (FileCreateFactory) Create

func (f FileCreateFactory) Create(params map[string]string, taskPath string) (Action, error)

func (FileCreateFactory) Name

func (f FileCreateFactory) Name() string

type FileDeleteFactory

type FileDeleteFactory struct{}

func (FileDeleteFactory) Create

func (f FileDeleteFactory) Create(params map[string]string, _ string) (Action, error)

func (FileDeleteFactory) Name

func (f FileDeleteFactory) Name() string

type LineDeleteFactory

type LineDeleteFactory struct{}

func (LineDeleteFactory) Create

func (f LineDeleteFactory) Create(params map[string]string, _ string) (Action, error)

func (LineDeleteFactory) Name

func (f LineDeleteFactory) Name() string

type LineInsertFactory

type LineInsertFactory struct{}

func (LineInsertFactory) Create

func (f LineInsertFactory) Create(params map[string]string, _ string) (Action, error)

func (LineInsertFactory) Name

func (f LineInsertFactory) Name() string

type LineReplaceFactory

type LineReplaceFactory struct{}

func (LineReplaceFactory) Create

func (f LineReplaceFactory) Create(params map[string]string, _ string) (Action, error)

func (LineReplaceFactory) Name

func (f LineReplaceFactory) Name() string

Jump to

Keyboard shortcuts

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