Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Shell scripting (with Bash, typically) is a popular language choice with Bazel for one-off wrappers and tests.

Starter repo

Aspect maintains a starter repo for Shell scripting in Bazel: https://github.com/bazel-starters/shell

Training

We use Shell scripting as the example language in Aspect’s Bazel 101 course

APIs

Running programs

Testing

  • sh_test - Run a shell script as a test
  • bats - Bats (Bash Automated Testing System) test runner

Linting

  • shellcheck - ShellCheck linter integration for shell scripts