File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
basalt_packages/packages/github.com/hyperupcall Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ authors = ['Edwin Kofler <edwin@kofler.dev>']
6
6
description = ' '
7
7
8
8
[run ]
9
- dependencies = [' hyperupcall/bash-args@v0.8.0 ' ]
9
+ dependencies = [' hyperupcall/bash-args@e5466e6c3998790ebd99768cf0f910e161b84a95 ' ]
10
10
binDirs = [' pkg/bin' ]
Original file line number Diff line number Diff line change
1
+ /home/edwin/.local/share/basalt/store/packages/github.com/hyperupcall/bash-args@e5466e6c3998790ebd99768cf0f910e161b84a95
Original file line number Diff line number Diff line change 59
59
60
60
# shellcheck disable=SC1091
61
61
source " $PROGRAM_LIB_DIR /cmd/choose.sh"
62
+ choose.main " $@ "
Original file line number Diff line number Diff line change 3
3
# async issues with +u when sourcing
4
4
set -Eeo pipefail
5
5
6
+ eval " $( basalt-package-init) " ; basalt.package-init
7
+ basalt.package-load
8
+
6
9
# ------------------------- start ------------------------ #
7
10
source " $PROGRAM_LIB_DIR /do.sh"
8
11
source " $PROGRAM_LIB_DIR /helper.sh"
9
12
source " $PROGRAM_LIB_DIR /plumbing.sh"
10
13
source " $PROGRAM_LIB_DIR /util.sh"
11
- PATH=" $PROGRAM_LIB_DIR /../../bpm_packages/bin:$PATH " # TODO
14
+
15
+ for f in " $PROGRAM_LIB_DIR " /../../basalt_packages/packages/github.com/hyperupcall/bash-args@* /pkg/{lib/util,source}/* .sh; do
16
+ source " $f "
17
+ done
12
18
13
19
db_dir=" ${CHOOSE_DB_DIR:- ${XDG_CONFIG_HOME:- $HOME / .config} / choose/ db} "
14
20
15
- main () {
21
+ choose. main () {
16
22
declare -A args=()
17
23
declare -a argsCommands=()
18
24
19
25
# shellcheck disable=SC1091
20
- source bash-args parse " $@ " << -"EOF "
26
+ bash-args parse " $@ " << -"EOF "
21
27
@arg launch - (category) Launches the default program in a particular category
22
28
@arg set - (category) (application) Sets the default program in a particular category
23
29
@flag [gui] - Whether to open a GUI
@@ -53,5 +59,3 @@ main() {
53
59
log.die " Subcommand '${argsCommands[0]} ' not found"
54
60
esac
55
61
}
56
-
57
- main " $@ "
You can’t perform that action at this time.
0 commit comments