arguments

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments interface {
	Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error
}

type CommandArgs

type CommandArgs struct {
	Arguments
	Cmd  string
	Args []string
	User string
	Cwd  string
}

func NewCommandArgs

func NewCommandArgs(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*CommandArgs, error)

func (*CommandArgs) Parse

func (a *CommandArgs) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

type CreateDirectoryArguments added in v0.0.10

type CreateDirectoryArguments struct {
	Arguments
	Path       string
	Permission os.FileMode
}

func NewCreateDirectoryArguments added in v0.0.10

func NewCreateDirectoryArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*CreateDirectoryArguments, error)

func (*CreateDirectoryArguments) Parse added in v0.0.10

type FileCopyArguments

type FileCopyArguments struct {
	Arguments
	Src  string
	Dest string
	Perm os.FileMode
}

func NewFileCopyArguments

func NewFileCopyArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*FileCopyArguments, error)

func (*FileCopyArguments) Parse

func (a *FileCopyArguments) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

type FileMoveArguments

type FileMoveArguments struct {
	Arguments
	Src  string
	Dest string
}

func NewFileMoveArguments

func NewFileMoveArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*FileMoveArguments, error)

func (*FileMoveArguments) Parse

func (a *FileMoveArguments) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

type FishSetPathArguments added in v0.0.9

type FishSetPathArguments struct {
	Arguments
	Values []string
}

func NewFishSetPathArguments added in v0.0.9

func NewFishSetPathArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*FishSetPathArguments, error)

func (*FishSetPathArguments) Parse added in v0.0.9

func (a *FishSetPathArguments) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

type FishSetVariableArguments added in v0.0.9

type FishSetVariableArguments struct {
	Arguments
	Name   string
	Value  string
	Scope  FishVariableScope
	Export bool
}

func NewFishSetVariableArguments added in v0.0.9

func NewFishSetVariableArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*FishSetVariableArguments, error)

func (*FishSetVariableArguments) Parse added in v0.0.9

type FishVariableScope added in v0.0.9

type FishVariableScope int
const (
	FishVariableUniversalScope FishVariableScope = iota + 1
	FishVariableGlobalScope
	FishVariableLocalScope
)

type HTTPRequestArguments

type HTTPRequestArguments struct {
	Arguments
	URL  string
	Path string
}

func NewHTTPRequestArguments

func NewHTTPRequestArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*HTTPRequestArguments, error)

func (*HTTPRequestArguments) Parse

func (a *HTTPRequestArguments) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

type PackageArguments

type PackageArguments struct {
	Arguments
	Name string
}

func NewPackageArguments

func NewPackageArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*PackageArguments, error)

func (*PackageArguments) Parse

func (a *PackageArguments) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

type SymlinkArguments

type SymlinkArguments struct {
	Arguments
	Src  string
	Dest string
}

func NewSymlinkArguments

func NewSymlinkArguments(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (*SymlinkArguments, error)

func (*SymlinkArguments) Parse

func (a *SymlinkArguments) Parse(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) error

Jump to

Keyboard shortcuts

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