Skip to content

Instantly share code, notes, and snippets.

@kchodorow
Created March 29, 2017 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kchodorow/61c77f1855711b8ddd852e96e14d053d to your computer and use it in GitHub Desktop.
Save kchodorow/61c77f1855711b8ddd852e96e14d053d to your computer and use it in GitHub Desktop.
Simple rule example
load('//bazel:my-first-rule.bzl', 'my_rule')
my_rule(name = 'whatever')
def _impl(ctx):
pass
my_rule = rule(
implementation = _impl,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment