Skip to content

bkahlert/init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init.rc Build Status Repository Size Repository Size

About

init provides access to the following tools in one place:

  • bats Run Bats (Bash Automated Testing System) tests
  • libguestfs (i.e. guestfish, virt-customize) Tools for accessing and modifying virtual machine disk images
  • recordr Record terminal sessions and convert them to SVG

recorded terminal session listing provided binaries
init.rc --help

recorded terminal session demonstrating guestfish
init.rc guestfish

Usage

Sourcing

If sourced, all provided binaries that can't be found locally are aliased and can be used for the rest of the current shell session.

source <(curl -LfsS https://git.io/init.rc)
bats test

Executing

If executed, a single command can be invoked without further modifications of the current shell session.

curl -LfsS https://git.io/init.rc | "$SHELL" -s -- bats test

Testing

git clone https://github.com/bkahlert/init.git
cd init

# Use Bats wrapper to run tests
curl -LfsS https://git.io/batsw \
  | DOCKER_BAKE="--set '*.tags=test'" "$SHELL" -s -- --batsw:-e --batsw:BUILD_TAG=test test

Bats Wrapper is a self-contained wrapper to run tests based on the Bash testing framework Bats.

💡 To accelerate testing, the Bats Wrapper checks if any test is prefixed with a capital X and if so, only runs those tests.

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.