al_sh_library

al_sh_library

load("@com_alwaldend_src//bzl/rules/sh:al_sh_library.bzl", "al_sh_library")

al_sh_library(name, shfmt_src, editorconfig_src, shellcheck_src, run_args_src, visibility,
              **common_kwargs)

Create targets for a shell library

Targets:

  • ${name}-shfmt-fix: executable to run shfmt
  • ${name}-shfmt-test: test whether the script is formatted
  • ${name}-shellcheck-test: shellcheck test

PARAMETERS

Name Description Default Value
name target name none
shfmt_src

-

"@cc_mvdan_sh_v3//cmd/shfmt:shfmt"
editorconfig_src

-

"//:editorconfig"
shellcheck_src

-

"@com_github_koalaman_shellcheck_linux_x86_64//:bin"
run_args_src

-

"//sh/scripts:run-args.lib"
visibility

-

["//visibility:public"]
common_kwargs kwargs for both targets none