builtins

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = &BuiltinsConfig{}

	Thread = &starlark.Thread{
		Name:  "main",
		Print: print,
		Load:  load,
	}

	Predeclared = starlark.StringDict{
		"env":         starlark.NewBuiltin("env", env),
		"sh":          starlark.NewBuiltin("sh", sh),
		"task":        starlark.NewBuiltin("task", task),
		"service":     starlark.NewBuiltin("service", service),
		"go_service":  starlark.NewBuiltin("go_service", go_service),
		"docker_repo": starlark.NewBuiltin("docker_repo", docker_repo),
		"build_flags": starlark.NewBuiltin("build_flags", build_flags),
	}
)

Functions

func ConfigTasks

func ConfigTasks(command *cobra.Command, tasksGroupID string, tasksGroupTitle string)

Types

type BuiltinsConfig

type BuiltinsConfig struct {
	RootCommand     *cobra.Command
	TasksGroupID    string
	TasksGroupTitle string
}

Jump to

Keyboard shortcuts

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