builtins

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 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