Skip to content

Commit 3c06f79

Browse files
Update dependency DannyBen/bashly to v1.2.6 (#31)
* Update dependency DannyBen/bashly to v1.2.6 * Generate new version of script --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pavel Popov <[email protected]>
1 parent 1e99ee4 commit 3c06f79

File tree

3 files changed

+65
-24
lines changed

3 files changed

+65
-24
lines changed

Diff for: .github/workflows/linters.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: gem install bashly -v "${BASHLY_VERSION}"
8080
env:
8181
# renovate: datasource=github-releases depName=DannyBen/bashly
82-
BASHLY_VERSION: 1.2.2
82+
BASHLY_VERSION: 1.2.6
8383
- name: 🚀 Run bashly
8484
run: bashly generate --upgrade
8585
- name: suggester / bashly

Diff for: keencli

+55-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# This script was generated by bashly 1.2.2 (https://bashly.dannyb.co)
2+
# This script was generated by bashly 1.2.6 (https://bashly.dannyb.co)
33
# Modifying it manually is not recommended
44

55
# :wrapper.bash3_bouncer
@@ -791,20 +791,29 @@ yellow() { print_in_color "\e[33m" "$*"; }
791791
blue() { print_in_color "\e[34m" "$*"; }
792792
magenta() { print_in_color "\e[35m" "$*"; }
793793
cyan() { print_in_color "\e[36m" "$*"; }
794+
black() { print_in_color "\e[30m" "$*"; }
795+
white() { print_in_color "\e[37m" "$*"; }
796+
794797
bold() { print_in_color "\e[1m" "$*"; }
795798
underlined() { print_in_color "\e[4m" "$*"; }
799+
796800
red_bold() { print_in_color "\e[1;31m" "$*"; }
797801
green_bold() { print_in_color "\e[1;32m" "$*"; }
798802
yellow_bold() { print_in_color "\e[1;33m" "$*"; }
799803
blue_bold() { print_in_color "\e[1;34m" "$*"; }
800804
magenta_bold() { print_in_color "\e[1;35m" "$*"; }
801805
cyan_bold() { print_in_color "\e[1;36m" "$*"; }
806+
black_bold() { print_in_color "\e[1;30m" "$*"; }
807+
white_bold() { print_in_color "\e[1;37m" "$*"; }
808+
802809
red_underlined() { print_in_color "\e[4;31m" "$*"; }
803810
green_underlined() { print_in_color "\e[4;32m" "$*"; }
804811
yellow_underlined() { print_in_color "\e[4;33m" "$*"; }
805812
blue_underlined() { print_in_color "\e[4;34m" "$*"; }
806813
magenta_underlined() { print_in_color "\e[4;35m" "$*"; }
807814
cyan_underlined() { print_in_color "\e[4;36m" "$*"; }
815+
black_underlined() { print_in_color "\e[4;30m" "$*"; }
816+
white_underlined() { print_in_color "\e[4;37m" "$*"; }
808817

809818
# src/lib/functions/calculate_hash.sh
810819
function calculate_hash() {
@@ -1090,6 +1099,7 @@ validate_json() {
10901099
# :command.command_functions
10911100
# :command.function
10921101
keencli_request_command() {
1102+
10931103
# src/request_command.sh
10941104
# shellcheck disable=SC2154
10951105
http_command \
@@ -1103,6 +1113,7 @@ keencli_request_command() {
11031113

11041114
# :command.function
11051115
keencli_show_system_command() {
1116+
11061117
# src/show_system_command.sh
11071118
# shellcheck disable=SC2154
11081119
url_path="/rci/show/system"
@@ -1123,6 +1134,7 @@ keencli_show_system_command() {
11231134

11241135
# :command.function
11251136
keencli_show_interface_command() {
1137+
11261138
# src/show_interface_command.sh
11271139
# shellcheck disable=SC2154
11281140
url_path="/rci/show/interface"
@@ -1148,6 +1160,7 @@ keencli_show_interface_command() {
11481160

11491161
# :command.function
11501162
keencli_show_ip_hotspot_list_command() {
1163+
11511164
# src/show_ip_hotspot_list_command.sh
11521165
# shellcheck disable=SC2154
11531166
url_path="/rci/show/ip/hotspot"
@@ -1168,6 +1181,7 @@ keencli_show_ip_hotspot_list_command() {
11681181

11691182
# :command.function
11701183
keencli_show_ip_hotspot_summary_command() {
1184+
11711185
# src/show_ip_hotspot_summary_command.sh
11721186
# shellcheck disable=SC2154
11731187
metric_type="${args[--metric_type]}"
@@ -1187,6 +1201,7 @@ keencli_show_ip_hotspot_summary_command() {
11871201

11881202
# :command.function
11891203
keencli_show_internet_command() {
1204+
11901205
# src/show_internet_command.sh
11911206
# shellcheck disable=SC2154
11921207
url_path="/rci/show/internet/status"
@@ -1202,6 +1217,7 @@ keencli_show_internet_command() {
12021217

12031218
# :command.function
12041219
keencli_show_ntce_summary_command() {
1220+
12051221
# src/show_ntce_summary_command.sh
12061222
# shellcheck disable=SC2154
12071223
traffic_type="${args[--traffic_type]}"
@@ -1222,6 +1238,7 @@ keencli_show_ntce_summary_command() {
12221238

12231239
# :command.function
12241240
keencli_config_command() {
1241+
12251242
# src/config_command.sh
12261243
# shellcheck disable=SC2154
12271244
http_command \
@@ -1235,6 +1252,7 @@ keencli_config_command() {
12351252

12361253
# :command.function
12371254
keencli_log_command() {
1255+
12381256
# src/log_command.sh
12391257
# shellcheck disable=SC2154
12401258
url_path="/ci/log.txt"
@@ -1250,6 +1268,7 @@ keencli_log_command() {
12501268

12511269
# :command.function
12521270
keencli_self_test_command() {
1271+
12531272
# src/self_test_command.sh
12541273
# shellcheck disable=SC2154
12551274
url_path="/ci/self-test.txt"
@@ -1267,7 +1286,8 @@ keencli_self_test_command() {
12671286
parse_requirements() {
12681287
# :command.fixed_flags_filter
12691288
while [[ $# -gt 0 ]]; do
1270-
case "${1:-}" in
1289+
key="$1"
1290+
case "$key" in
12711291
--version | -v)
12721292
version_command
12731293
exit
@@ -1397,7 +1417,8 @@ parse_requirements() {
13971417
keencli_request_parse_requirements() {
13981418
# :command.fixed_flags_filter
13991419
while [[ $# -gt 0 ]]; do
1400-
case "${1:-}" in
1420+
key="$1"
1421+
case "$key" in
14011422
--help | -h)
14021423
long_usage=yes
14031424
keencli_request_usage
@@ -1485,7 +1506,6 @@ keencli_request_parse_requirements() {
14851506

14861507
esac
14871508
done
1488-
14891509
# :command.required_args_filter
14901510
if [[ -z ${args['url_path']+x} ]]; then
14911511
printf "missing required argument: URL_PATH\nusage: keencli request URL_PATH [REQUEST_DATA] [OPTIONS]\n" >&2
@@ -1527,7 +1547,8 @@ keencli_request_parse_requirements() {
15271547
keencli_show_parse_requirements() {
15281548
# :command.fixed_flags_filter
15291549
while [[ $# -gt 0 ]]; do
1530-
case "${1:-}" in
1550+
key="$1"
1551+
case "$key" in
15311552
--help | -h)
15321553
long_usage=yes
15331554
keencli_show_usage
@@ -1622,7 +1643,8 @@ keencli_show_parse_requirements() {
16221643
keencli_show_system_parse_requirements() {
16231644
# :command.fixed_flags_filter
16241645
while [[ $# -gt 0 ]]; do
1625-
case "${1:-}" in
1646+
key="$1"
1647+
case "$key" in
16261648
--help | -h)
16271649
long_usage=yes
16281650
keencli_show_system_usage
@@ -1740,7 +1762,8 @@ keencli_show_system_parse_requirements() {
17401762
keencli_show_interface_parse_requirements() {
17411763
# :command.fixed_flags_filter
17421764
while [[ $# -gt 0 ]]; do
1743-
case "${1:-}" in
1765+
key="$1"
1766+
case "$key" in
17441767
--help | -h)
17451768
long_usage=yes
17461769
keencli_show_interface_usage
@@ -1862,7 +1885,8 @@ keencli_show_interface_parse_requirements() {
18621885
keencli_show_ip_parse_requirements() {
18631886
# :command.fixed_flags_filter
18641887
while [[ $# -gt 0 ]]; do
1865-
case "${1:-}" in
1888+
key="$1"
1889+
case "$key" in
18661890
--help | -h)
18671891
long_usage=yes
18681892
keencli_show_ip_usage
@@ -1929,7 +1953,8 @@ keencli_show_ip_parse_requirements() {
19291953
keencli_show_ip_hotspot_parse_requirements() {
19301954
# :command.fixed_flags_filter
19311955
while [[ $# -gt 0 ]]; do
1932-
case "${1:-}" in
1956+
key="$1"
1957+
case "$key" in
19331958
--help | -h)
19341959
long_usage=yes
19351960
keencli_show_ip_hotspot_usage
@@ -2003,7 +2028,8 @@ keencli_show_ip_hotspot_parse_requirements() {
20032028
keencli_show_ip_hotspot_list_parse_requirements() {
20042029
# :command.fixed_flags_filter
20052030
while [[ $# -gt 0 ]]; do
2006-
case "${1:-}" in
2031+
key="$1"
2032+
case "$key" in
20072033
--help | -h)
20082034
long_usage=yes
20092035
keencli_show_ip_hotspot_list_usage
@@ -2125,7 +2151,8 @@ keencli_show_ip_hotspot_list_parse_requirements() {
21252151
keencli_show_ip_hotspot_summary_parse_requirements() {
21262152
# :command.fixed_flags_filter
21272153
while [[ $# -gt 0 ]]; do
2128-
case "${1:-}" in
2154+
key="$1"
2155+
case "$key" in
21292156
--help | -h)
21302157
long_usage=yes
21312158
keencli_show_ip_hotspot_summary_usage
@@ -2286,7 +2313,8 @@ keencli_show_ip_hotspot_summary_parse_requirements() {
22862313
keencli_show_internet_parse_requirements() {
22872314
# :command.fixed_flags_filter
22882315
while [[ $# -gt 0 ]]; do
2289-
case "${1:-}" in
2316+
key="$1"
2317+
case "$key" in
22902318
--help | -h)
22912319
long_usage=yes
22922320
keencli_show_internet_usage
@@ -2394,7 +2422,8 @@ keencli_show_internet_parse_requirements() {
23942422
keencli_show_ntce_parse_requirements() {
23952423
# :command.fixed_flags_filter
23962424
while [[ $# -gt 0 ]]; do
2397-
case "${1:-}" in
2425+
key="$1"
2426+
case "$key" in
23982427
--help | -h)
23992428
long_usage=yes
24002429
keencli_show_ntce_usage
@@ -2461,7 +2490,8 @@ keencli_show_ntce_parse_requirements() {
24612490
keencli_show_ntce_summary_parse_requirements() {
24622491
# :command.fixed_flags_filter
24632492
while [[ $# -gt 0 ]]; do
2464-
case "${1:-}" in
2493+
key="$1"
2494+
case "$key" in
24652495
--help | -h)
24662496
long_usage=yes
24672497
keencli_show_ntce_summary_usage
@@ -2641,7 +2671,8 @@ keencli_show_ntce_summary_parse_requirements() {
26412671
keencli_config_parse_requirements() {
26422672
# :command.fixed_flags_filter
26432673
while [[ $# -gt 0 ]]; do
2644-
case "${1:-}" in
2674+
key="$1"
2675+
case "$key" in
26452676
--help | -h)
26462677
long_usage=yes
26472678
keencli_config_usage
@@ -2711,7 +2742,6 @@ keencli_config_parse_requirements() {
27112742

27122743
esac
27132744
done
2714-
27152745
# :command.required_args_filter
27162746
if [[ -z ${args['configuration_file']+x} ]]; then
27172747
printf "missing required argument: CONFIGURATION_FILE\nusage: keencli config CONFIGURATION_FILE [OPTIONS]\n" >&2
@@ -2747,7 +2777,8 @@ keencli_config_parse_requirements() {
27472777
keencli_log_parse_requirements() {
27482778
# :command.fixed_flags_filter
27492779
while [[ $# -gt 0 ]]; do
2750-
case "${1:-}" in
2780+
key="$1"
2781+
case "$key" in
27512782
--help | -h)
27522783
long_usage=yes
27532784
keencli_log_usage
@@ -2834,7 +2865,8 @@ keencli_log_parse_requirements() {
28342865
keencli_self_test_parse_requirements() {
28352866
# :command.fixed_flags_filter
28362867
while [[ $# -gt 0 ]]; do
2837-
case "${1:-}" in
2868+
key="$1"
2869+
case "$key" in
28382870
--help | -h)
28392871
long_usage=yes
28402872
keencli_self_test_usage
@@ -2927,11 +2959,11 @@ initialize() {
29272959

29282960
# :command.run
29292961
run() {
2930-
declare -A args=()
2931-
declare -A deps=()
2932-
declare -a other_args=()
2933-
declare -a env_var_names=()
2934-
declare -a input=()
2962+
declare -g -A args=()
2963+
declare -g -A deps=()
2964+
declare -g -a other_args=()
2965+
declare -g -a env_var_names=()
2966+
declare -g -a input=()
29352967
normalize_input "$@"
29362968
parse_requirements "${input[@]}"
29372969

Diff for: src/lib/colors.sh

+9
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,26 @@ yellow() { print_in_color "\e[33m" "$*"; }
2626
blue() { print_in_color "\e[34m" "$*"; }
2727
magenta() { print_in_color "\e[35m" "$*"; }
2828
cyan() { print_in_color "\e[36m" "$*"; }
29+
black() { print_in_color "\e[30m" "$*"; }
30+
white() { print_in_color "\e[37m" "$*"; }
31+
2932
bold() { print_in_color "\e[1m" "$*"; }
3033
underlined() { print_in_color "\e[4m" "$*"; }
34+
3135
red_bold() { print_in_color "\e[1;31m" "$*"; }
3236
green_bold() { print_in_color "\e[1;32m" "$*"; }
3337
yellow_bold() { print_in_color "\e[1;33m" "$*"; }
3438
blue_bold() { print_in_color "\e[1;34m" "$*"; }
3539
magenta_bold() { print_in_color "\e[1;35m" "$*"; }
3640
cyan_bold() { print_in_color "\e[1;36m" "$*"; }
41+
black_bold() { print_in_color "\e[1;30m" "$*"; }
42+
white_bold() { print_in_color "\e[1;37m" "$*"; }
43+
3744
red_underlined() { print_in_color "\e[4;31m" "$*"; }
3845
green_underlined() { print_in_color "\e[4;32m" "$*"; }
3946
yellow_underlined() { print_in_color "\e[4;33m" "$*"; }
4047
blue_underlined() { print_in_color "\e[4;34m" "$*"; }
4148
magenta_underlined() { print_in_color "\e[4;35m" "$*"; }
4249
cyan_underlined() { print_in_color "\e[4;36m" "$*"; }
50+
black_underlined() { print_in_color "\e[4;30m" "$*"; }
51+
white_underlined() { print_in_color "\e[4;37m" "$*"; }

0 commit comments

Comments
 (0)