Skip to content
/ bash-skeleton Public template

A skeleton to build your bash cli-app.

License

Notifications You must be signed in to change notification settings

Chemaclass/bash-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c7d5fab · Oct 5, 2024

History

20 Commits
Sep 15, 2024
Sep 15, 2024
Oct 5, 2024
Oct 5, 2024
Sep 15, 2024
Oct 5, 2024
Oct 5, 2024
Sep 15, 2024
Sep 15, 2024
Sep 15, 2024
Oct 5, 2024
Sep 19, 2024
Oct 5, 2024
Oct 5, 2024

Repository files navigation

bash-skeleton

This skeleton provides a strong yet simple foundation, making it easy to start building robust Bash scripts with a well-structured architecture.

Features

  • Dependency Management: Uses bashdep for managing dependencies.

    • Install with: install-dependencies.sh
  • Testing: Integrates bashunit for testing.

    • Tests in: tests/
  • Source Structure: Organize functions in different files.

    • Source in: src/
  • Entry Point: Ready to handle arguments and options.

    • Script: ./entry-point
  • Build System: Bundle your project into a single executable.

    • Use: ./build.sh
  • CI: Automates linting, static analysis, and tests on commits/PRs.

    • Workflows in: .github/workflows/
  • Pre-commit Hook: Optional hook for running tests, linter, and analysis.

    • Script: bin/pre-commit
  • Makefile: Simplifies project management with basic commands.

    • Available in: Makefile

Inspired by

This skeleton is the result of building other projects like:

Contribute

Suggestions, ideas and PRs are more than welcome here! Please, Check out our CONTRIBUTING.md guidelines.