Skip to content

Commit a0288b7

Browse files
committed
fix: Make bash-args ready for consumption by Basalt
1 parent ebe7aa1 commit a0288b7

File tree

4 files changed

+8
-73
lines changed

4 files changed

+8
-73
lines changed

.envrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

load.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# shellcheck shell=bash
2+
3+
basalt_load() {
4+
for f in "$BASALT_PACKAGE_PATH"/pkg/{lib/util,source}/?*.sh; do
5+
source "$f"
6+
done; unset f
7+
}

pkg/bin/bash-args

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# shellcheck shell=bash
22

3-
source "$BASH_ARGS_LIB_DIR/util/util.sh"
4-
5-
# TODO: namespace the entrypoint, and ensure to unset the variables after
6-
# Not readonly as this is sourced. This also should read 'BASH_ARGS_VERSION',
7-
# not 'PROGRAM_VERSION' since this file is sourced and 'PROGRAM_VERSION'
8-
# is more generic
9-
declare BASH_ARGS_VERSION="0.7.0+916ca13-DIRTY"
10-
113
bash-args() {
124
case "$1" in
135
-h|--help)
@@ -30,7 +22,7 @@ bash-args() {
3022
;;
3123
-v|--version)
3224
cat <<-"EOF"
33-
Version: $BASH_ARGS_VERSION
25+
Version: # TODO
3426
EOF
3527
return
3628
;;

0 commit comments

Comments
 (0)