filemanager: github.com/hacdias/filemanager/runner Index | Files

package runner

import "github.com/hacdias/filemanager/runner"

Index

Package Files

parser.go runner.go

func ParseCommand Uses

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.

type Runner Uses

type Runner struct {
    *settings.Settings
}

Runner is a commands runner.

func (*Runner) RunHook Uses

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.

Package runner imports 8 packages (graph). Updated 2019-07-23. Refresh now. Tools for package owners.