1 - al_drawio_run_binary

al_drawio_run_binary

load("@com-alwaldend-git-src//bzl/rules:al_drawio_run_binary.bzl", "al_drawio_run_binary")

al_drawio_run_binary(name, srcs, out, arguments, cmd_timeout)

Run drawio a a build action

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources List of labels optional []
out Output Label; nonconfigurable required
arguments Arguments, location statements are expanded List of strings required
cmd_timeout Drawio command timeout String optional "1m"

2 - al_genrule

al_genrule_executable

load("@com-alwaldend-git-src//bzl/rules:al_genrule.bzl", "al_genrule_executable")

al_genrule_executable(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)

Build executable using shell worker

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources, will not be added to runfiles List of labels optional []
data Data, will be added to runfiles List of labels optional []
outs Outputs List of labels; nonconfigurable required
cmd Script to execute String required
set_flags set flags List of strings optional ["-eux"]
shell shell to use String optional "/bin/sh"
tools Tools, will be added to runfiles List of labels optional []
worker Worker binary Label optional "@com-alwaldend-git-src//go/bazel-shell-worker"

al_genrule_regular

load("@com-alwaldend-git-src//bzl/rules:al_genrule.bzl", "al_genrule_regular")

al_genrule_regular(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)

Build shell worker rule

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources, will not be added to runfiles List of labels optional []
data Data, will be added to runfiles List of labels optional []
outs Outputs List of labels; nonconfigurable required
cmd Script to execute String required
set_flags set flags List of strings optional ["-eux"]
shell shell to use String optional "/bin/sh"
tools Tools, will be added to runfiles List of labels optional []
worker Worker binary Label optional "@com-alwaldend-git-src//go/bazel-shell-worker"

al_genrule_test

load("@com-alwaldend-git-src//bzl/rules:al_genrule.bzl", "al_genrule_test")

al_genrule_test(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)

Test using shell worker

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources, will not be added to runfiles List of labels optional []
data Data, will be added to runfiles List of labels optional []
outs Outputs List of labels; nonconfigurable required
cmd Script to execute String required
set_flags set flags List of strings optional ["-eux"]
shell shell to use String optional "/bin/sh"
tools Tools, will be added to runfiles List of labels optional []
worker Worker binary Label optional "@com-alwaldend-git-src//go/bazel-shell-worker"

3 - al_git_binary

al_git_binary

load("@com-alwaldend-git-src//bzl/rules:al_git_binary.bzl", "al_git_binary")

al_git_binary(name, src, arguments)

Run git binary

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
src Git info Label required
arguments Git arguments (templated) List of strings optional []

4 - al_git_library

al_git_library

load("@com-alwaldend-git-src//bzl/rules:al_git_library.bzl", "al_git_library")

al_git_library(name, src)

Define git information

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
src Git dir Label required

5 - al_hugo_binary

al_hugo_binary

load("@com-alwaldend-git-src//bzl/rules:al_hugo_binary.bzl", "al_hugo_binary")

al_hugo_binary(name, arguments, site)

Run a hugo command

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
arguments Hugo arguments List of strings required
site Hugo site Label required

6 - al_hugo_run_binary

al_hugo_run_binary

load("@com-alwaldend-git-src//bzl/rules:al_hugo_run_binary.bzl", "al_hugo_run_binary")

al_hugo_run_binary(name, arguments, site)

Run hugo binary as a build action

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
arguments Hugo arguments List of strings required
site Hugo site Label required

7 - al_hugo_site

al_hugo_site

load("@com-alwaldend-git-src//bzl/rules:al_hugo_site.bzl", "al_hugo_site")

al_hugo_site(name, configs, content, env, hugo_data, hugo_layouts, postcss, themes, tools)

Define a hugo site

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
configs Hugo configs List of labels required
content Hugo content Label required
env Hugo environment variables (support location statements, support make variables, support shell commands) Dictionary: String -> String optional {}
hugo_data Hugo data Label required
hugo_layouts Hugo layouts Label required
postcss Postcss target Label required
themes Hugo themes Label required
tools Tools that should be available for the build List of labels optional []

8 - al_remove_directories

al_remove_directories

load("@com-alwaldend-git-src//bzl/rules:al_remove_directories.bzl", "al_remove_directories")

al_remove_directories(name, srcs)

Remove directory files from DefaultInfo

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Sources to remove directories from List of labels optional []

9 - al_template_files

al_template_files

load("@com-alwaldend-git-src//bzl/rules:al_template_files.bzl", "al_template_files")

al_template_files(name, srcs, data, outs, templater)

Load data files, then template the template and write the output

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs Template files List of labels required
data Data files List of labels required
outs Output files List of labels; nonconfigurable required
templater Templater to use Label optional "@com-alwaldend-git-src//go/template-files"

10 - al_toml_data

al_toml_data

load("@com-alwaldend-git-src//bzl/rules:al_toml_data.bzl", "al_toml_data")

al_toml_data(name, deps, srcs, tomlv)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
deps Toml data targets List of labels optional []
srcs Toml files List of labels optional []
tomlv Tomlv target to use for validation Label optional "@com-alwaldend-git-src//tools:tomlv"

11 - al_unpack_archives

al_unpack_archives

load("@com-alwaldend-git-src//bzl/rules:al_unpack_archives.bzl", "al_unpack_archives")

al_unpack_archives(name, srcs, out)

Unpack several archives using tar into a directory

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs - List of labels required
out - String optional ""

12 - al_write_script

al_write_script

load("@com-alwaldend-git-src//bzl/rules:al_write_script.bzl", "al_write_script")

al_write_script(name, out, content, make_vars, set_flags, shebang)

Write a script and make it executable

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
out Output file Label; nonconfigurable required
content Script content String required
make_vars Additional make vars Dictionary: String -> String optional {}
set_flags Flags to pass to set List of strings optional ["-eu"]
shebang Sheband to use String optional "#!/usr/bin/env sh"

13 - Bazel targets

NameInfo
al_drawio_run_binary
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_drawio_run_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_drawio_run_binary-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_drawio_run_binary-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_drawio_run_binary-stardoc.md
visibility
  • //visibility:private
al_drawio_run_binary-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_drawio_run_binary-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_drawio_run_binary-stardoc-raw.md
visibility
  • //visibility:private
al_drawio_run_binary-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_drawio_run_binary-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_drawio_run_binary-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_drawio_run_binary-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_genrule
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_genrule
ruleClassbzl_library
visibility
  • //visibility:public
al_genrule-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_genrule-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_genrule-stardoc.md
visibility
  • //visibility:private
al_genrule-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_genrule-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_genrule-stardoc-raw.md
visibility
  • //visibility:private
al_genrule-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_genrule-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_genrule-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_genrule-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_git_binary
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_git_binary-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_binary-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_git_binary-stardoc.md
visibility
  • //visibility:private
al_git_binary-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_binary-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_git_binary-stardoc-raw.md
visibility
  • //visibility:private
al_git_binary-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_binary-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_git_binary-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_git_binary-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_git_library
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_library
ruleClassbzl_library
visibility
  • //visibility:public
al_git_library-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_library-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_git_library-stardoc.md
visibility
  • //visibility:private
al_git_library-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_library-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_git_library-stardoc-raw.md
visibility
  • //visibility:private
al_git_library-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_git_library-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_git_library-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_git_library-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_hugo_binary
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_binary-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_binary-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_hugo_binary-stardoc.md
visibility
  • //visibility:private
al_hugo_binary-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_binary-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_hugo_binary-stardoc-raw.md
visibility
  • //visibility:private
al_hugo_binary-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_binary-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_hugo_binary-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_hugo_binary-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_hugo_run_binary
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_run_binary
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_run_binary-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_run_binary-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_hugo_run_binary-stardoc.md
visibility
  • //visibility:private
al_hugo_run_binary-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_run_binary-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_hugo_run_binary-stardoc-raw.md
visibility
  • //visibility:private
al_hugo_run_binary-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_run_binary-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_hugo_run_binary-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_hugo_run_binary-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_hugo_site
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_site
ruleClassbzl_library
visibility
  • //visibility:public
al_hugo_site-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_site-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_hugo_site-stardoc.md
visibility
  • //visibility:private
al_hugo_site-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_site-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_hugo_site-stardoc-raw.md
visibility
  • //visibility:private
al_hugo_site-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_hugo_site-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_hugo_site-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_hugo_site-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_remove_directories
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_remove_directories
ruleClassbzl_library
visibility
  • //visibility:public
al_remove_directories-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_remove_directories-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_remove_directories-stardoc.md
visibility
  • //visibility:private
al_remove_directories-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_remove_directories-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_remove_directories-stardoc-raw.md
visibility
  • //visibility:private
al_remove_directories-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_remove_directories-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_remove_directories-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_remove_directories-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_template_files
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_template_files
ruleClassbzl_library
visibility
  • //visibility:public
al_template_files-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_template_files-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_template_files-stardoc.md
visibility
  • //visibility:private
al_template_files-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_template_files-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_template_files-stardoc-raw.md
visibility
  • //visibility:private
al_template_files-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_template_files-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_template_files-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_template_files-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_toml_data
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_toml_data
ruleClassbzl_library
visibility
  • //visibility:public
al_toml_data-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_toml_data-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_toml_data-stardoc.md
visibility
  • //visibility:private
al_toml_data-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_toml_data-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_toml_data-stardoc-raw.md
visibility
  • //visibility:private
al_toml_data-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_toml_data-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_toml_data-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_toml_data-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_unpack_archives
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_unpack_archives
ruleClassbzl_library
visibility
  • //visibility:public
al_unpack_archives-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_unpack_archives-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_unpack_archives-stardoc.md
visibility
  • //visibility:private
al_unpack_archives-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_unpack_archives-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_unpack_archives-stardoc-raw.md
visibility
  • //visibility:private
al_unpack_archives-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_unpack_archives-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_unpack_archives-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_unpack_archives-stardoc-raw.extract.textproto
visibility
  • //visibility:private
al_write_script
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_write_script
ruleClassbzl_library
visibility
  • //visibility:public
al_write_script-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_write_script-stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules:al_write_script-stardoc.md
visibility
  • //visibility:private
al_write_script-stardoc-raw
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_write_script-stardoc-raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules:al_write_script-stardoc-raw.md
visibility
  • //visibility:private
al_write_script-stardoc-raw.extract
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:al_write_script-stardoc-raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules:al_write_script-stardoc-raw.extract.binaryproto
  • //bzl/rules:al_write_script-stardoc-raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog
ruleClasspkg_tar_impl
ruleOutput
  • //bzl/rules:changelog.tar
visibility
  • //visibility:public
changelog-changelog
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog-changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules:changelog.md
visibility
  • //visibility:public
changelog-changelog-data
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog-changelog-data
ruleClassgenrule
ruleOutput
  • //bzl/rules:changelog-changelog-data.yaml
visibility
  • //visibility:private
changelog-children
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog-children
ruleClasspkg_tar_impl
ruleOutput
  • //bzl/rules:changelog-children.tar
visibility
  • //visibility:private
changelog-template
locationbzl/rules/BUILD.bazel:6:17
name//bzl/rules:changelog-template
ruleClass_write_file
ruleOutput
  • //bzl/rules:changelog-template.md
visibility
  • //visibility:private
readme
locationbzl/rules/BUILD.bazel:49:10
name//bzl/rules:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme-children
locationbzl/rules/BUILD.bazel:49:10
name//bzl/rules:readme-children
ruleClasspkg_tar_impl
ruleOutput
  • //bzl/rules:readme-children.tar
visibility
  • //visibility:public
rules
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:rules
ruleClassbzl_library
visibility
  • //visibility:public
rules-stardoc
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:rules-stardoc
ruleClasspkg_tar_impl
ruleOutput
  • //bzl/rules:rules-stardoc.tar
visibility
  • //visibility:public
rules-stardoc-deps
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:rules-stardoc-deps
ruleClasspkg_tar_impl
ruleOutput
  • //bzl/rules:rules-stardoc-deps.tar
visibility
  • //visibility:private
rules-stardoc-src
locationbzl/rules/BUILD.bazel:11:19
name//bzl/rules:rules-stardoc-src
ruleClasspkg_tar_impl
ruleOutput
  • //bzl/rules:rules-stardoc-src.tar
visibility
  • //visibility:private

14 - Changelog