Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gerardnico/bash-lib

Repository files navigation

Bash Libs

About

A collection of:

Example

Colorized message

After installation, you would use the bashlib-echo.sh library and output an error:

source bashlib-echo.sh
echo::err "Oups"

Error traps

After installation, you would use the bashlib-error.sh library and shows a stack trace if any error with:

set -Eeuo pipefail
source bashlib-error.sh
error::set_trap

Where is the library documentation?

See each library documentation page for usage.

The bash-lib package contains the following libraries:

How to load a library

source bashlib-[name].sh
# to load the echo library
source bashlib-echo.sh

Express Cli using these libraries

  • direnv-ext - Direnv Express - A direnv extension to get secret from vault
  • dock-x - Dock Express - Your docker command driven by environment variables
  • git-x - Git Express - Command plugin/extensions (back up Github, execute a command against multiple repositories, ...)
  • kube-x - Kube Express - a framework to provision and manage a kubernetes cluster
  • ssh-x - SSH Express - a framework to manage SSH connection

How to install

With Homebrew

brew install --HEAD gerardnico/tap/bashlib

With Git

git clone https://github.com/gerardnico/bash-lib
# Add the libraries and script directory into your path in your `.bashrc` file
export PATH=$PWD/bash-lib/lib:$PATH
export PATH=$PWD/bash-lib/bin:$PATH

Where is the Script documentation?

This package get also the following scripts:

  • bashlib-docgen - Generate the documentation of bash scripts and libraries

How to contribute? Dev Documentation

See dev

Env

BASHLIB_LIBRARY_PATH is the directory of the libraries. It's optional if the library are in a directory that is in the PATH environment variable.

About

A collection of bash libraries and utility scripts

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /