Skip to content

Releases: unfor19/bargs

v1.1.5

28 Apr 08:23
8900ff1
Compare
Choose a tag to compare

What's Changed

  • Fix calling with only flag argument yielidng "Empty argument" by @J-MR-T in #36

New Contributors

Full Changelog: v.1.1.4...v1.1.5

v.1.1.4

21 Aug 22:05
5a1ad5f
Compare
Choose a tag to compare
  • Using recommended bash shebang
  • Updated Dockerfile.example alpine version from 3.12 to 3.14
  • Updated docs for easy copy-paste snippets of code

v1.1.3

09 Jan 00:26
Compare
Choose a tag to compare
  • Fixed breaking hidden prompts with CTRL+C

  • Prettier example.sh, making it more readable

  • Fixed getting the proper env var if already exists, for example, the following caused age to be empty

    GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 # agent contains "age"
    ...
    age=33

v1.1.2

03 Oct 21:32
Compare
Choose a tag to compare
  • Support CTRL+C to terminate

v1.1.1

20 Aug 10:57
Compare
Choose a tag to compare
  • [ADDED] Flexible Assignment enables passing arguments with the equal sign or a whitespace
example.sh --name "Willy Wonka"
example.sh --name="Willy Wonka"

v1.1.0

20 Aug 00:16
Compare
Choose a tag to compare
  • [ADDED] Reference to a specific bargs_vars file by setting the environment variable BARGS_VARS_PATH

In your application example.sh

export BARGS_VARS_PATH="$bargs_vars_path"
source "${PWD}"/"$(dirname ${BASH_SOURCE[0]})"/bargs.sh "$@"

This feature enables having a single bargs.sh file, with multiple bargs_vars in the same repository. It's now possible to embed bargs in multiple Bash scripts that reside in the same repository.

Version bumped from v1.0.14 to v1.1.0 🎉

v1.0.14

14 Aug 14:15
Compare
Choose a tag to compare
  • [BUGFIX] Environment variables are used only if not empty, otherwise, fallback to default

v1.0.13

14 Aug 11:37
Compare
Choose a tag to compare
  • [ADDED] Fallback to environment variables with allow_env_var=true

v1.0.12

08 Aug 17:00
74ccf7f
Compare
Choose a tag to compare
  • [ADDED] Shellcheck on creating pull-requests
  • [MODIFIED] Reorganized code to run in functions, this helps to avoid polluting the global scope

v1.0.11

07 Aug 14:00
0e29adf
Compare
Choose a tag to compare
  • [MODIFIED] Minor cleanup thanks to @toazd