Skip to content

Commit 7565e59

Browse files
committed
refactor: Rename 'basalt-load.sh to basalt-global.sh`
1 parent a50b6bb commit 7565e59

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

pkg/lib/cmd/basalt-package-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EOF
2323
export BASALT_GLOBAL_DATA_DIR="${BASALT_GLOBAL_DATA_DIR:-"${XDG_DATA_HOME:-$HOME/.local/share}/basalt"}"
2424
2525
# basalt global and internal functions
26-
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-load.sh"
26+
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-global.sh"
2727
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-package.sh"
2828
2929
if [ -z "${BASALT_PACKAGE_DIR:-}" ]; then

pkg/lib/commands/do-global-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ do-global-init() {
6767

6868
cat <<-"EOF"
6969
# basalt global functions
70-
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-load.sh"
70+
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-global.sh"
7171
7272
# basalt completions
7373
if [ -f "$BASALT_GLOBAL_REPO/completions/basalt.bash" ]; then
@@ -89,7 +89,7 @@ do-global-init() {
8989

9090
cat <<-"EOF"
9191
# basalt global functions
92-
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-load.sh"
92+
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-global.sh"
9393
9494
# basalt completions
9595
fpath=("$BASALT_GLOBAL_REPO/completions" $fpath)

pkg/lib/public/basalt-load.sh renamed to pkg/lib/public/basalt-global.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# shellcheck shell=bash
22

3-
# This function is usable by anyone to source some or all functions of a Bash
4-
# library
3+
# @file basalt-global.sh
4+
# @brief Contains functions to be used anywhere (shell initialization, Basalt
5+
# packages, etc.)
56

67
__basalt_load_dosource() {
78
:
89
}
910

10-
# TODO: rename this function to 'basalt-global.sh' or something and the other to 'basalt-local.sh'
1111
basalt.load() {
1212
local __basalt_flag_global='no'
1313
local __basalt_flag_dry='no'

pkg/lib/public/basalt-package.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# shellcheck shell=bash
22

3-
# This function is only usable by those who executed 'basalt-package-init'
3+
# @file basalt-global.sh
4+
# @brief Contains files only usable in Basalt packages (à la 'basalt-package-init')
45

56
basalt.package-load() {
67
local __basalt_shopt_nullglob=

0 commit comments

Comments
 (0)