1
1
#! /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)
3
3
# Modifying it manually is not recommended
4
4
5
5
# :wrapper.bash3_bouncer
@@ -791,20 +791,29 @@ yellow() { print_in_color "\e[33m" "$*"; }
791
791
blue () { print_in_color " \e[34m" " $* " ; }
792
792
magenta () { print_in_color " \e[35m" " $* " ; }
793
793
cyan () { print_in_color " \e[36m" " $* " ; }
794
+ black () { print_in_color " \e[30m" " $* " ; }
795
+ white () { print_in_color " \e[37m" " $* " ; }
796
+
794
797
bold () { print_in_color " \e[1m" " $* " ; }
795
798
underlined () { print_in_color " \e[4m" " $* " ; }
799
+
796
800
red_bold () { print_in_color " \e[1;31m" " $* " ; }
797
801
green_bold () { print_in_color " \e[1;32m" " $* " ; }
798
802
yellow_bold () { print_in_color " \e[1;33m" " $* " ; }
799
803
blue_bold () { print_in_color " \e[1;34m" " $* " ; }
800
804
magenta_bold () { print_in_color " \e[1;35m" " $* " ; }
801
805
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
+
802
809
red_underlined () { print_in_color " \e[4;31m" " $* " ; }
803
810
green_underlined () { print_in_color " \e[4;32m" " $* " ; }
804
811
yellow_underlined () { print_in_color " \e[4;33m" " $* " ; }
805
812
blue_underlined () { print_in_color " \e[4;34m" " $* " ; }
806
813
magenta_underlined () { print_in_color " \e[4;35m" " $* " ; }
807
814
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" " $* " ; }
808
817
809
818
# src/lib/functions/calculate_hash.sh
810
819
function calculate_hash() {
@@ -1090,6 +1099,7 @@ validate_json() {
1090
1099
# :command.command_functions
1091
1100
# :command.function
1092
1101
keencli_request_command () {
1102
+
1093
1103
# src/request_command.sh
1094
1104
# shellcheck disable=SC2154
1095
1105
http_command \
@@ -1103,6 +1113,7 @@ keencli_request_command() {
1103
1113
1104
1114
# :command.function
1105
1115
keencli_show_system_command () {
1116
+
1106
1117
# src/show_system_command.sh
1107
1118
# shellcheck disable=SC2154
1108
1119
url_path=" /rci/show/system"
@@ -1123,6 +1134,7 @@ keencli_show_system_command() {
1123
1134
1124
1135
# :command.function
1125
1136
keencli_show_interface_command () {
1137
+
1126
1138
# src/show_interface_command.sh
1127
1139
# shellcheck disable=SC2154
1128
1140
url_path=" /rci/show/interface"
@@ -1148,6 +1160,7 @@ keencli_show_interface_command() {
1148
1160
1149
1161
# :command.function
1150
1162
keencli_show_ip_hotspot_list_command () {
1163
+
1151
1164
# src/show_ip_hotspot_list_command.sh
1152
1165
# shellcheck disable=SC2154
1153
1166
url_path=" /rci/show/ip/hotspot"
@@ -1168,6 +1181,7 @@ keencli_show_ip_hotspot_list_command() {
1168
1181
1169
1182
# :command.function
1170
1183
keencli_show_ip_hotspot_summary_command () {
1184
+
1171
1185
# src/show_ip_hotspot_summary_command.sh
1172
1186
# shellcheck disable=SC2154
1173
1187
metric_type=" ${args[--metric_type]} "
@@ -1187,6 +1201,7 @@ keencli_show_ip_hotspot_summary_command() {
1187
1201
1188
1202
# :command.function
1189
1203
keencli_show_internet_command () {
1204
+
1190
1205
# src/show_internet_command.sh
1191
1206
# shellcheck disable=SC2154
1192
1207
url_path=" /rci/show/internet/status"
@@ -1202,6 +1217,7 @@ keencli_show_internet_command() {
1202
1217
1203
1218
# :command.function
1204
1219
keencli_show_ntce_summary_command () {
1220
+
1205
1221
# src/show_ntce_summary_command.sh
1206
1222
# shellcheck disable=SC2154
1207
1223
traffic_type=" ${args[--traffic_type]} "
@@ -1222,6 +1238,7 @@ keencli_show_ntce_summary_command() {
1222
1238
1223
1239
# :command.function
1224
1240
keencli_config_command () {
1241
+
1225
1242
# src/config_command.sh
1226
1243
# shellcheck disable=SC2154
1227
1244
http_command \
@@ -1235,6 +1252,7 @@ keencli_config_command() {
1235
1252
1236
1253
# :command.function
1237
1254
keencli_log_command () {
1255
+
1238
1256
# src/log_command.sh
1239
1257
# shellcheck disable=SC2154
1240
1258
url_path=" /ci/log.txt"
@@ -1250,6 +1268,7 @@ keencli_log_command() {
1250
1268
1251
1269
# :command.function
1252
1270
keencli_self_test_command () {
1271
+
1253
1272
# src/self_test_command.sh
1254
1273
# shellcheck disable=SC2154
1255
1274
url_path=" /ci/self-test.txt"
@@ -1267,7 +1286,8 @@ keencli_self_test_command() {
1267
1286
parse_requirements () {
1268
1287
# :command.fixed_flags_filter
1269
1288
while [[ $# -gt 0 ]]; do
1270
- case " ${1:- } " in
1289
+ key=" $1 "
1290
+ case " $key " in
1271
1291
--version | -v)
1272
1292
version_command
1273
1293
exit
@@ -1397,7 +1417,8 @@ parse_requirements() {
1397
1417
keencli_request_parse_requirements () {
1398
1418
# :command.fixed_flags_filter
1399
1419
while [[ $# -gt 0 ]]; do
1400
- case " ${1:- } " in
1420
+ key=" $1 "
1421
+ case " $key " in
1401
1422
--help | -h)
1402
1423
long_usage=yes
1403
1424
keencli_request_usage
@@ -1485,7 +1506,6 @@ keencli_request_parse_requirements() {
1485
1506
1486
1507
esac
1487
1508
done
1488
-
1489
1509
# :command.required_args_filter
1490
1510
if [[ -z ${args['url_path']+x} ]]; then
1491
1511
printf " missing required argument: URL_PATH\nusage: keencli request URL_PATH [REQUEST_DATA] [OPTIONS]\n" >&2
@@ -1527,7 +1547,8 @@ keencli_request_parse_requirements() {
1527
1547
keencli_show_parse_requirements () {
1528
1548
# :command.fixed_flags_filter
1529
1549
while [[ $# -gt 0 ]]; do
1530
- case " ${1:- } " in
1550
+ key=" $1 "
1551
+ case " $key " in
1531
1552
--help | -h)
1532
1553
long_usage=yes
1533
1554
keencli_show_usage
@@ -1622,7 +1643,8 @@ keencli_show_parse_requirements() {
1622
1643
keencli_show_system_parse_requirements () {
1623
1644
# :command.fixed_flags_filter
1624
1645
while [[ $# -gt 0 ]]; do
1625
- case " ${1:- } " in
1646
+ key=" $1 "
1647
+ case " $key " in
1626
1648
--help | -h)
1627
1649
long_usage=yes
1628
1650
keencli_show_system_usage
@@ -1740,7 +1762,8 @@ keencli_show_system_parse_requirements() {
1740
1762
keencli_show_interface_parse_requirements () {
1741
1763
# :command.fixed_flags_filter
1742
1764
while [[ $# -gt 0 ]]; do
1743
- case " ${1:- } " in
1765
+ key=" $1 "
1766
+ case " $key " in
1744
1767
--help | -h)
1745
1768
long_usage=yes
1746
1769
keencli_show_interface_usage
@@ -1862,7 +1885,8 @@ keencli_show_interface_parse_requirements() {
1862
1885
keencli_show_ip_parse_requirements () {
1863
1886
# :command.fixed_flags_filter
1864
1887
while [[ $# -gt 0 ]]; do
1865
- case " ${1:- } " in
1888
+ key=" $1 "
1889
+ case " $key " in
1866
1890
--help | -h)
1867
1891
long_usage=yes
1868
1892
keencli_show_ip_usage
@@ -1929,7 +1953,8 @@ keencli_show_ip_parse_requirements() {
1929
1953
keencli_show_ip_hotspot_parse_requirements () {
1930
1954
# :command.fixed_flags_filter
1931
1955
while [[ $# -gt 0 ]]; do
1932
- case " ${1:- } " in
1956
+ key=" $1 "
1957
+ case " $key " in
1933
1958
--help | -h)
1934
1959
long_usage=yes
1935
1960
keencli_show_ip_hotspot_usage
@@ -2003,7 +2028,8 @@ keencli_show_ip_hotspot_parse_requirements() {
2003
2028
keencli_show_ip_hotspot_list_parse_requirements () {
2004
2029
# :command.fixed_flags_filter
2005
2030
while [[ $# -gt 0 ]]; do
2006
- case " ${1:- } " in
2031
+ key=" $1 "
2032
+ case " $key " in
2007
2033
--help | -h)
2008
2034
long_usage=yes
2009
2035
keencli_show_ip_hotspot_list_usage
@@ -2125,7 +2151,8 @@ keencli_show_ip_hotspot_list_parse_requirements() {
2125
2151
keencli_show_ip_hotspot_summary_parse_requirements () {
2126
2152
# :command.fixed_flags_filter
2127
2153
while [[ $# -gt 0 ]]; do
2128
- case " ${1:- } " in
2154
+ key=" $1 "
2155
+ case " $key " in
2129
2156
--help | -h)
2130
2157
long_usage=yes
2131
2158
keencli_show_ip_hotspot_summary_usage
@@ -2286,7 +2313,8 @@ keencli_show_ip_hotspot_summary_parse_requirements() {
2286
2313
keencli_show_internet_parse_requirements () {
2287
2314
# :command.fixed_flags_filter
2288
2315
while [[ $# -gt 0 ]]; do
2289
- case " ${1:- } " in
2316
+ key=" $1 "
2317
+ case " $key " in
2290
2318
--help | -h)
2291
2319
long_usage=yes
2292
2320
keencli_show_internet_usage
@@ -2394,7 +2422,8 @@ keencli_show_internet_parse_requirements() {
2394
2422
keencli_show_ntce_parse_requirements () {
2395
2423
# :command.fixed_flags_filter
2396
2424
while [[ $# -gt 0 ]]; do
2397
- case " ${1:- } " in
2425
+ key=" $1 "
2426
+ case " $key " in
2398
2427
--help | -h)
2399
2428
long_usage=yes
2400
2429
keencli_show_ntce_usage
@@ -2461,7 +2490,8 @@ keencli_show_ntce_parse_requirements() {
2461
2490
keencli_show_ntce_summary_parse_requirements () {
2462
2491
# :command.fixed_flags_filter
2463
2492
while [[ $# -gt 0 ]]; do
2464
- case " ${1:- } " in
2493
+ key=" $1 "
2494
+ case " $key " in
2465
2495
--help | -h)
2466
2496
long_usage=yes
2467
2497
keencli_show_ntce_summary_usage
@@ -2641,7 +2671,8 @@ keencli_show_ntce_summary_parse_requirements() {
2641
2671
keencli_config_parse_requirements () {
2642
2672
# :command.fixed_flags_filter
2643
2673
while [[ $# -gt 0 ]]; do
2644
- case " ${1:- } " in
2674
+ key=" $1 "
2675
+ case " $key " in
2645
2676
--help | -h)
2646
2677
long_usage=yes
2647
2678
keencli_config_usage
@@ -2711,7 +2742,6 @@ keencli_config_parse_requirements() {
2711
2742
2712
2743
esac
2713
2744
done
2714
-
2715
2745
# :command.required_args_filter
2716
2746
if [[ -z ${args['configuration_file']+x} ]]; then
2717
2747
printf " missing required argument: CONFIGURATION_FILE\nusage: keencli config CONFIGURATION_FILE [OPTIONS]\n" >&2
@@ -2747,7 +2777,8 @@ keencli_config_parse_requirements() {
2747
2777
keencli_log_parse_requirements () {
2748
2778
# :command.fixed_flags_filter
2749
2779
while [[ $# -gt 0 ]]; do
2750
- case " ${1:- } " in
2780
+ key=" $1 "
2781
+ case " $key " in
2751
2782
--help | -h)
2752
2783
long_usage=yes
2753
2784
keencli_log_usage
@@ -2834,7 +2865,8 @@ keencli_log_parse_requirements() {
2834
2865
keencli_self_test_parse_requirements () {
2835
2866
# :command.fixed_flags_filter
2836
2867
while [[ $# -gt 0 ]]; do
2837
- case " ${1:- } " in
2868
+ key=" $1 "
2869
+ case " $key " in
2838
2870
--help | -h)
2839
2871
long_usage=yes
2840
2872
keencli_self_test_usage
@@ -2927,11 +2959,11 @@ initialize() {
2927
2959
2928
2960
# :command.run
2929
2961
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=()
2935
2967
normalize_input " $@ "
2936
2968
parse_requirements " ${input[@]} "
2937
2969
0 commit comments