This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Template files

Rules to template files

1 - al_template_files

al_template_files

load("@com_alwaldend_src//bzl/rules/template_files: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_src//go/template-files"

2 - Bazel targets

NameInfo
al_template_files
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files
ruleClassbzl_library
visibility
  • //visibility:public
al_template_files.stardoc
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/template_files:al_template_files.stardoc.md
visibility
  • //visibility:private
al_template_files.stardoc_raw
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/template_files:al_template_files.stardoc_raw.md
visibility
  • //visibility:private
al_template_files.stardoc_raw.extract
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:al_template_files.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/template_files:al_template_files.stardoc_raw.extract.binaryproto
  • //bzl/rules/template_files:al_template_files.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/template_files:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/template_files:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/template_files/BUILD.bazel:6:17
name//bzl/rules/template_files:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/template_files:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/template_files/BUILD.bazel:11:19
name//bzl/rules/template_files:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/template_files/BUILD.bazel:19:10
name//bzl/rules/template_files:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/template_files/BUILD.bazel:19:10
name//bzl/rules/template_files:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/template_files/BUILD.bazel:19:10
name//bzl/rules/template_files:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

3 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move template_files rules to bzl/rules/template_files (72daa0)