run

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicRun = func(ctx common.Context, o *runOrchestrator, identifier string) error {
	err := o.runner.PrepareFunc(o.runner, ctx)
	if err != nil {
		return err
	}
	err = o.prepareFunc(o, ctx)
	if err != nil {
		return err
	}
	cmdFolderItem, err := o.extractCommandFolderItemFunc(o, o.commandFolderName, o.commandFolderItemName)
	if err != nil {
		return err
	}
	return o.activeRunFunc(o, ctx, cmdFolderItem, identifier)
}

Functions

func AddCommand

func AddCommand(parent cmd.AnchorCommand, commandFolderName string, createCmd NewCommandFunc) error

func NewCommand

func NewCommand(ctx common.Context, commandFolderName string, runFunc DynamicRunFunc) *runCmd

func NewOrchestrator

func NewOrchestrator(
	runner *runner.ActionRunnerOrchestrator,
	commandFolderName string,
	commandItemName string) *runOrchestrator

Types

type DynamicRunFunc

type DynamicRunFunc func(ctx common.Context, o *runOrchestrator, identifier string) error

type NewCommandFunc

type NewCommandFunc func(ctx common.Context, parentFolderName string, runFunc DynamicRunFunc) *runCmd

Jump to

Keyboard shortcuts

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