@beplus/be 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +21 -1
- package/bin/be +10 -8
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- TITLE/ -->
|
|
2
|
+
|
|
3
|
+
# @beplus/be
|
|
4
|
+
|
|
5
|
+
<!-- /TITLE -->
|
|
6
|
+
|
|
7
|
+
<!-- BADGES/ -->
|
|
8
|
+
|
|
9
|
+
[](https://npmjs.com/@beplus/be)
|
|
10
|
+
|
|
11
|
+
<!-- /BADGES -->
|
|
12
|
+
|
|
13
|
+
<!-- DESCRIPTION/ -->
|
|
14
|
+
|
|
15
|
+
Interactively Manage Your [**beplus CLI**](https://github.com/beplus/cli) Versions.
|
|
16
|
+
|
|
17
|
+
<!-- /DESCRIPTION -->
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
The [Documentation](https://docs.be.plus/cli/prerequisites#beplus-be) is available at https://docs.be.plus/cli.
|
package/bin/be
CHANGED
|
@@ -64,7 +64,7 @@ function n_grep() {
|
|
|
64
64
|
# Setup and state
|
|
65
65
|
#
|
|
66
66
|
|
|
67
|
-
VERSION="v0.
|
|
67
|
+
VERSION="v0.4.0"
|
|
68
68
|
|
|
69
69
|
BE_PREFIX="${BE_PREFIX-/usr/local}"
|
|
70
70
|
BE_PREFIX=${BE_PREFIX%/}
|
|
@@ -226,8 +226,8 @@ function update_arch_settings_for_version() {
|
|
|
226
226
|
#
|
|
227
227
|
|
|
228
228
|
function is_numeric_version() {
|
|
229
|
-
# e.g. 6, v7.1, 8.11.3
|
|
230
|
-
[[ "$1" =~ ^[v]{0,1}[0-9]+(\.[0-9]+){0,2}
|
|
229
|
+
# e.g. 6, v7.1, 8.11.3, 1.0.0-alpha.56, 1.0.0-beta.4+dev
|
|
230
|
+
[[ "$1" =~ ^[v]{0,1}[0-9]+(\.[0-9]+){0,2}(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
#
|
|
@@ -235,8 +235,8 @@ function is_numeric_version() {
|
|
|
235
235
|
#
|
|
236
236
|
|
|
237
237
|
function is_exact_numeric_version() {
|
|
238
|
-
# e.g. 6, v7.1, 8.11.3
|
|
239
|
-
[[ "$1" =~ ^[v]{0,1}[0-9]+\.[0-9]+\.[0-9]
|
|
238
|
+
# e.g. 6, v7.1, 8.11.3, 1.0.0+dev
|
|
239
|
+
[[ "$1" =~ ^[v]{0,1}[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
#
|
|
@@ -320,7 +320,7 @@ Commands:
|
|
|
320
320
|
|
|
321
321
|
Options:
|
|
322
322
|
|
|
323
|
-
-V, --version Output version of
|
|
323
|
+
-V, --version Output version of be
|
|
324
324
|
-h, --help Display help information
|
|
325
325
|
-q, --quiet Disable curl output. Disable log messages processing "auto" label.
|
|
326
326
|
-d, --download Download if necessary, and don't make active
|
|
@@ -919,9 +919,10 @@ function display_compatible_file_field {
|
|
|
919
919
|
|
|
920
920
|
function tarball_url() {
|
|
921
921
|
local version="$1"
|
|
922
|
+
local url_version="${version//+/%2B}"
|
|
922
923
|
local ext=gz
|
|
923
924
|
[ "$BE_USE_XZ" = "true" ] && ext="xz"
|
|
924
|
-
echo "${g_mirror_url}/v${
|
|
925
|
+
echo "${g_mirror_url}/v${url_version}/beplus-cli-v${url_version}-$(display_tarball_platform).tar.${ext}"
|
|
925
926
|
}
|
|
926
927
|
|
|
927
928
|
#
|
|
@@ -1134,7 +1135,8 @@ function display_remote_versions() {
|
|
|
1134
1135
|
fi
|
|
1135
1136
|
|
|
1136
1137
|
# local index_url="https://api.github.com/repos/beplus/cli/releases"
|
|
1137
|
-
local index_url="https://beplus.s3.amazonaws.com/cli/releases.json"
|
|
1138
|
+
# local index_url="https://beplus.s3.amazonaws.com/cli/releases.json"
|
|
1139
|
+
local index_url="${BE_RELEASE_INDEX_URL:-https://beplus.s3.amazonaws.com/cli/releases.json}"
|
|
1138
1140
|
|
|
1139
1141
|
for row in $(do_get_index "${index_url}" | jq -r '.[] | @base64'); do
|
|
1140
1142
|
_jq() {
|
package/package.json
CHANGED