os

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &starlarkstruct.Module{
	Name: "os",
	Members: starlark.StringDict{
		"path": path.Module,

		"environ":   NewEnviron(),
		"look_path": NewLookPath(),
		"exec":      NewExec(),
		"output":    NewOutput(),
		"exists":    NewExists(),
		"getcwd":    NewGetcwd(),
		"glob":      NewGlob(),
		"mkdir":     NewMkdir(),
		"makedirs":  NewMakedirs(),
	},
}

def os():

"""
Provides a platform-independent interface to host operating system
functionality. Functions in this package expect and return host paths.
"""

@module
def path():
    """
    The path module provides functions to manipulate host paths.
    """

@function("environ")
def environ():
    pass

@function("lookPath")
def look_path():
    pass

@function("execf")
def exec():
    pass

@function("output")
def output():
    pass

@function("exists")
def exists():
    pass

@function("getcwd")
def getcwd():
    pass

@function("glob")
def glob():
    pass

@function("mkdir")
def mkdir():
    pass

@function("makedirs")
def makedirs():
    pass

Functions

func Environ added in v0.1.2

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

func Exec

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

func Exists

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

func Getcwd

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

func Glob

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

func LookPath added in v0.1.15

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

func Makedirs added in v0.1.2

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

func Mkdir added in v0.1.2

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

func NewEnviron added in v0.1.2

func NewEnviron() *starlark.Builtin

func NewExec

func NewExec() *starlark.Builtin

func NewExists

func NewExists() *starlark.Builtin

func NewGetcwd

func NewGetcwd() *starlark.Builtin

func NewGlob

func NewGlob() *starlark.Builtin

func NewLookPath added in v0.1.15

func NewLookPath() *starlark.Builtin

func NewMakedirs added in v0.1.2

func NewMakedirs() *starlark.Builtin

func NewMkdir added in v0.1.2

func NewMkdir() *starlark.Builtin

func NewOutput

func NewOutput() *starlark.Builtin

func Output

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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