runner

package
v0.0.0-...-6ab7fdd Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommand

func ParseCommand(s *settings.Settings, raw string) ([]string, error)

ParseCommand parses the command taking in account if the current instance uses a shell to run the commands or just calls the binary directyly.

Types

type Runner

type Runner struct {
	Enabled bool
	*settings.Settings
}

Runner is a commands runner.

func (*Runner) RunHook

func (r *Runner) RunHook(fn func() error, evt, path, dst string, user *users.User) error

RunHook runs the hooks for the before and after event.

Jump to

Keyboard shortcuts

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