blob: 803819c71ec2e8b5cc80f1dec5aa279e543d781f [file] [log] [blame]
"cwd: a rule for executing an executable in the BUILD_WORKING_DIRECTORY"
load(":run_in.bzl", "run_in", "run_in_attrs")
def _cwd_impl(ctx):
return run_in(ctx, "BUILD_WORKING_DIRECTORY")
cwd = rule(
implementation = _cwd_impl,
attrs = run_in_attrs,
executable = True,
)