@@ -1,6 +1,9 @@
Loading
1 1
# shellcheck shell=sh
2 2
3 3
optparser() {
4 +
  eval "$1() { optparser_parse \"\$@\"; }"
5 +
  eval "optparser_error() { $2 \"\$@\"; }"
6 +
4 7
  # # shellcheck source=lib/getoptions.sh
5 8
  # . "$SHELLSPEC_LIB/getoptions.sh"
6 9
  # # shellcheck source=lib/getoptions_help.sh
@@ -8,11 +11,12 @@
Loading
8 11
  # # shellcheck source=lib/getoptions_abbr.sh
9 12
  # . "$SHELLSPEC_LIB/getoptions_abbr.sh"
10 13
  # # shellcheck source=lib/libexec/parser_definition.sh
11 -
  # . "$SHELLSPEC_LIB/libexec/parser_definition.sh"
14 +
  # . "$SHELLSPEC_LIB/libexec/optparser/parser_definition.sh"
15 +
  # set -- "optparser_parse" "SHELLSPEC" "optparser_error"
12 16
  # eval "$(getoptions parser_definition "$@")"
13 17
14 -
  # shellcheck source=lib/libexec/parser_definition_generated.sh
15 -
  . "$SHELLSPEC_LIB/libexec/parser_definition_generated.sh"
18 +
  # shellcheck source=lib/libexec/optparser/parser_definition_generated.sh
19 +
  . "$SHELLSPEC_LIB/libexec/optparser/parser_definition_generated.sh"
16 20
}
17 21
18 22
multiple() {
19 23
imilarity index 100%
20 24
ename from lib/libexec/parser_definition.sh
21 25
ename to lib/libexec/optparser/parser_definition.sh
22 26
imilarity index 99%
23 27
ename from lib/libexec/parser_definition_generated.sh
24 28
ename to lib/libexec/optparser/parser_definition_generated.sh

@@ -1,5 +1,5 @@
Loading
1 1
# shellcheck shell=sh
2 -
# URL: https://github.com/ko1nksm/getoptions (v2.2.0)
2 +
# URL: https://github.com/ko1nksm/getoptions (v2.3.0)
3 3
# License: Creative Commons Zero v1.0 Universal
4 4
getoptions_help() {
5 5
	_width='30,12' _plus='' _leading='  '
6 6
imilarity index 91%
7 7
ename from lib/libexec/optparser.sh
8 8
ename to lib/libexec/optparser/optparser.sh

@@ -1,5 +1,5 @@
Loading
1 1
# shellcheck shell=sh
2 -
# URL: https://github.com/ko1nksm/getoptions (v2.2.0)
2 +
# URL: https://github.com/ko1nksm/getoptions (v2.3.0)
3 3
# License: Creative Commons Zero v1.0 Universal
4 4
# shellcheck disable=SC2016,SC2154
5 5
getoptions_abbr() {

@@ -1,5 +1,5 @@
Loading
1 1
# shellcheck shell=sh
2 -
# URL: https://github.com/ko1nksm/getoptions (v2.2.0)
2 +
# URL: https://github.com/ko1nksm/getoptions (v2.3.0)
3 3
# License: Creative Commons Zero v1.0 Universal
4 4
# shellcheck disable=SC2016
5 5
getoptions() {

@@ -116,8 +116,8 @@
Loading
116 116
117 117
# shellcheck source=lib/libexec/shellspec.sh
118 118
. "$SHELLSPEC_LIB/libexec/shellspec.sh"
119 -
# shellcheck source=lib/libexec/optparser.sh
120 -
. "$SHELLSPEC_LIB/libexec/optparser.sh"
119 +
# shellcheck source=lib/libexec/optparser/optparser.sh
120 +
. "$SHELLSPEC_LIB/libexec/optparser/optparser.sh"
121 121
122 122
unixtime SHELLSPEC_UNIXTIME
123 123
@@ -144,7 +144,7 @@
Loading
144 144
HERE
145 145
export SHELLSPEC_KCOV_FILENAME="$SHELLSPEC_PROJECT_NAME [specfiles]"
146 146
147 -
optparser parse_options SHELLSPEC error_message
147 +
optparser parse_options error_message
148 148
149 149
error_message() {
150 150
  error "$1${options_file:+" [$options_file]"}"
151 151
imilarity index 98%
152 152
ename from spec/libexec/optparser_spec.sh
153 153
ename to spec/libexec/optparser/optparser_spec.sh
Files Coverage
lib 79.71%
libexec 20.97%
install.sh 53.10%
shellspec 0.00%
Project Totals (99 files) 66.21%
881.6
TRAVIS_OS_NAME=osx
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: 30%
6
    patch: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading