Documentation ¶
Index ¶
- Variables
- func Environ(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Exec(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Exists(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Getcwd(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Glob(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func LookPath(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Makedirs(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func Mkdir(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func NewEnviron() *starlark.Builtin
- func NewExec() *starlark.Builtin
- func NewExists() *starlark.Builtin
- func NewGetcwd() *starlark.Builtin
- func NewGlob() *starlark.Builtin
- func NewLookPath() *starlark.Builtin
- func NewMakedirs() *starlark.Builtin
- func NewMkdir() *starlark.Builtin
- func NewOutput() *starlark.Builtin
- func Output(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
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 NewEnviron ¶ added in v0.1.2
func NewLookPath ¶ added in v0.1.15
func NewMakedirs ¶ added in v0.1.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.