os

package
v0.0.0-...-5f4d853 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Args are the arguments accessible by nosh

View Source
var ModuleExit = starlark.NewBuiltin("os.exit", exit)
View Source
var ModuleExpand = starlark.NewBuiltin("os.expand", expand)
View Source
var ModuleGetenv = starlark.NewBuiltin("os.getenv", getenv)
View Source
var ModuleQuit = starlark.NewBuiltin("os.quit", exit)
View Source
var ModuleRun = starlark.NewBuiltin("os.run", run)
View Source
var ModuleSetenv = starlark.NewBuiltin("os.setenv", setenv)
View Source
var (
	PresetExitCode = 0
)

Functions

func Fail

func Fail(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func PresetExit

func PresetExit(thread *starlark.Thread)

func Print

func Print(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Printf

func Printf(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func SetArgs

func SetArgs(args []string)

SetArgs initializes the args accessible by nosh

Types

type Distro

type Distro struct {
	Os   string
	Arch string
}

{{{1 Distro

func (*Distro) Attr

func (di *Distro) Attr(name string) (strlk.Value, error)

func (*Distro) AttrNames

func (fe *Distro) AttrNames() []string

func (*Distro) Freeze

func (di *Distro) Freeze()

func (*Distro) Hash

func (di *Distro) Hash() (uint32, error)

func (*Distro) String

func (di *Distro) String() string

func (*Distro) Truth

func (di *Distro) Truth() strlk.Bool

func (*Distro) Type

func (di *Distro) Type() string

type RunResult

type RunResult struct {
	Cmd      []string
	Stdout   string
	Stderr   string
	ExitCode int
}

func (*RunResult) Attr

func (rr *RunResult) Attr(name string) (strlk.Value, error)

func (*RunResult) AttrNames

func (fe *RunResult) AttrNames() []string

func (*RunResult) Freeze

func (rr *RunResult) Freeze()

func (*RunResult) Hash

func (rr *RunResult) Hash() (uint32, error)

func (*RunResult) String

func (rr *RunResult) String() string

func (*RunResult) Truth

func (rr *RunResult) Truth() strlk.Bool

func (*RunResult) Type

func (rr *RunResult) Type() string

Jump to

Keyboard shortcuts

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