Documentation ¶
Overview ¶
Package workspace_rules contains implementations of Bazel workspace rules (only callable from WORKSPACE files).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Workspace = newWorkspaceRule("workspace", func(ctx core.Context, args starlark.Tuple, kwargs []starlark.Tuple) error { target := &WorkspaceArgs{} if err := builtins_args.ProcessArgs(args, kwargs, ctx, target); err != nil { return err } ctx.SetWorkspaceName(core.WorkspaceName(*target.Name)) return nil })
Workspace implements the Bazel workspace function.
Functions ¶
func NotImplemented ¶
NotImplemented is used for Bazel workspace rules that we haven't implemented (yet).
Types ¶
type WorkspaceArgs ¶
type WorkspaceArgs struct {
Name *string `bazel:"name!"`
}
WorkspaceArgs contains the argument for the workspace Bazel function.
func (*WorkspaceArgs) DidProcessArgs ¶
func (self *WorkspaceArgs) DidProcessArgs(ctx core.Context) error
Click to show internal directories.
Click to hide internal directories.