runner

package
v0.0.0-...-f35d6a9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

type Options

type Options struct {
}

type RunOption

type RunOption func(*RunOptions)

func Args

func Args(args ...string) RunOption

func Env

func Env(env []string) RunOption

type RunOptions

type RunOptions struct {
	Args []string
	Env  []string
}

type Runner

type Runner interface {
	// Sync synchronizes the environment with the given options.
	Sync(string, ...SyncOption) error
	// Run executes a python file in an environment.
	Run(string, ...RunOption) (Task, error)
}

type SyncOption

type SyncOption func(*SyncOptions)

func Dependencies

func Dependencies(deps ...string) SyncOption

type SyncOptions

type SyncOptions struct {
	Deps []string
}

type Task

type Task interface {
	Kill() error
	Exited() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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