action

package
v0.0.0-...-9c3951b Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAction

func CreateAction(act ActionBuild, sh *shell.Shell) (string, error)

func RunAction

func RunAction(me string, sh *shell.Shell) (string, error)

Types

type Action

type Action struct {
	Cmd  []string
	Deps map[string]string
}

func (Action) Run

func (a Action) Run(me string, sh *shell.Shell) (string, error)

type ActionBuild

type ActionBuild struct {
	Cmd     []string
	AbsDeps map[string]ActionBuildDep
}

func ConsumeAction

func ConsumeAction(path string, sh *shell.Shell) (ActionBuild, error)

func (ActionBuild) Attr

func (d ActionBuild) Attr(name string) (starlark.Value, error)

func (ActionBuild) AttrNames

func (b ActionBuild) AttrNames() []string

func (ActionBuild) Freeze

func (d ActionBuild) Freeze()

func (ActionBuild) Hash

func (d ActionBuild) Hash() (uint32, error)

func (ActionBuild) String

func (b ActionBuild) String() string

func (ActionBuild) Truth

func (d ActionBuild) Truth() starlark.Bool

func (ActionBuild) Type

func (d ActionBuild) Type() string

type ActionBuildDep

type ActionBuildDep struct {
	Act  ActionBuild
	Name string
}

func (ActionBuildDep) Attr

func (d ActionBuildDep) Attr(name string) (starlark.Value, error)

func (ActionBuildDep) AttrNames

func (d ActionBuildDep) AttrNames() []string

func (ActionBuildDep) Freeze

func (d ActionBuildDep) Freeze()

func (ActionBuildDep) Hash

func (d ActionBuildDep) Hash() (uint32, error)

Hash returns a function of x such that Equals(x, y) => Hash(x) == Hash(y). Hash may fail if the value's type is not hashable, or if the value contains a non-hashable value. The hash is used only by dictionaries and is not exposed to the Starlark program.

func (ActionBuildDep) String

func (d ActionBuildDep) String() string

func (ActionBuildDep) Truth

func (d ActionBuildDep) Truth() starlark.Bool

Truth returns the truth value of an object.

func (ActionBuildDep) Type

func (d ActionBuildDep) Type() string

type ActionCtx

type ActionCtx struct {
	// contains filtered or unexported fields
}

func (ActionCtx) Attr

func (c ActionCtx) Attr(name string) (starlark.Value, error)

func (ActionCtx) AttrNames

func (c ActionCtx) AttrNames() []string

func (ActionCtx) Freeze

func (d ActionCtx) Freeze()

func (ActionCtx) Hash

func (d ActionCtx) Hash() (uint32, error)

func (ActionCtx) String

func (s ActionCtx) String() string

func (ActionCtx) Truth

func (d ActionCtx) Truth() starlark.Bool

func (ActionCtx) Type

func (a ActionCtx) Type() string

Jump to

Keyboard shortcuts

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