Skip to content

Commit 60b27e7

Browse files
committed
refactor: move package files to 'pkg' folder
It looks better
1 parent ffde0bc commit 60b27e7

File tree

9 files changed

+21
-17
lines changed

9 files changed

+21
-17
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
* text=auto
2-
.glue
2+
.glue linguist-generated

.glue/actions/auto/tool-bats.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@ bootstrap || exit
44

55
ensure.cmd 'bats'
66

7-
for dir in test tests; do
8-
[[ -d $dir ]] || continue
7+
unset main
8+
main() {
9+
local -a dirs=()
10+
if [ -d pkg ]; then
11+
cd pkg || error.cd_failed
12+
dirs=(../test ../tests)
13+
else
14+
dirs=(test tests)
15+
fi
916

10-
bats --recursive --output "." "$dir"
11-
done
17+
for dir in "${dirs[@]}"; do
18+
[[ -d $dir ]] || continue
1219

20+
bats --recursive --output "." "$dir"
21+
done
22+
}
23+
24+
main "$@"
1325
unbootstrap

examples/bashblog.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# https://github.com/cfenollosa/bashblog
44

5-
source ./bin/args-init
6-
7-
args.parse <<"EOF"
5+
source args.parse <<"EOF"
86
@arg post - insert a new blog post, or the filename of a draft to continue editing it. it tries to use markdown by default, and falls back to HTML if it's not available. use '-html' to override it and edit the post as HTML even when markdown is available
97
@arg edit - edit an already published .html or .md file. **NEVER** edit manually a published .html file, always use this function as it keeps internal data and rebuilds the blog. use '-n' to give the file a new name, if title was changed. use '-f' to edit full html file, instead of just text part (also preserves name)
108
@arg delete - deletes the post and rebuilds the blog

examples/basher.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# https://github.com/basherpm/basher
44

5-
source ./bin/args-init
6-
7-
args.parse <<"EOF"
5+
source args.parse <<"EOF"
86
@arg help - Display help for a command
97
@arg commands - List all available basher commands
108
@arg init - Configure the shell environment for basher

examples/bats.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# https://github.com/bats-core/bats-core
44

5-
source ./bin/args-init
6-
7-
args.parse -- <<"EOF"
5+
source args.parse -- <<"EOF"
86
@flag [count.c] - Count test cases without running any tests
97
@flag [filter.f] {} - Only run tests that match the regular expression
108
@flag [formatter.F] {pretty} - Swithc between formatters: pretty (default), tap (default w/o term), tap13, junit

examples/json.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# https://github.com/dominictarr/JSON.sh
44

5-
source ./bin/args-init
6-
7-
args.parse -- <<"EOF"
5+
source args.parse -- <<"EOF"
86
@flag [.p] - Prune empty. Exclude fields with empty values.
97
@flag [.l] - Leaf only. Only show leaf nodes, which stops data duplication.
108
@flag [.b] - Brief. Combines 'Leaf only' and 'Prune empty' options.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)