jfrog-cli-v2-jf 2.36.0 → 2.37.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/README.md +2 -2
- package/init.js +23 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[Website](http://www.jfrog.com) • [Docs](https://www.jfrog.com/confluence/display/CLI/JFrog+CLI) • [Issues](https://github.com/jfrog/jfrog-cli-go/issues) • [Blog](https://jfrog.com/blog/) • [We're Hiring](https://join.jfrog.com/) • [Artifactory Free Trial](https://jfrog.com/artifactory/free-trial/)
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
|
-
JFrog CLI is a compact and smart client that provides a simple interface that automates access to *Artifactory* and *Mission Control* through their respective REST APIs.
|
|
11
|
+
JFrog CLI is a compact and smart client that provides a simple interface that automates access to *Artifactory*, *Xray*, *Distribution*, *Pipelines* and *Mission Control* through their respective REST APIs.
|
|
12
12
|
By using the JFrog CLI, you can greatly simplify your automation scripts making them more readable and easier to maintain.
|
|
13
13
|
Several features of the JFrog CLI makes your scripts more efficient and reliable.
|
|
14
14
|
|
|
@@ -25,4 +25,4 @@ npm version 5.0.0 or above.
|
|
|
25
25
|
npm install -g -unsafe-perm jfrog-cli-v2-jf
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
|
|
28
|
+
|
package/init.js
CHANGED
|
@@ -91,20 +91,32 @@ function writeToFile(response) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
function getArchitecture() {
|
|
94
|
-
|
|
95
|
-
if (platform.startsWith(
|
|
96
|
-
|
|
94
|
+
const platform = process.platform;
|
|
95
|
+
if (platform.startsWith('win')) {
|
|
96
|
+
// Windows architecture:
|
|
97
|
+
return 'windows-amd64';
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return "mac-386";
|
|
99
|
+
const arch = process.arch;
|
|
100
|
+
if (platform.includes('darwin')) {
|
|
101
|
+
// macOS architecture:
|
|
102
|
+
return arch === 'arm64' ? 'mac-arm64' : 'mac-386';
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
|
|
105
|
+
// linux architecture:
|
|
106
|
+
switch (arch) {
|
|
107
|
+
case 'x64':
|
|
108
|
+
return 'linux-amd64';
|
|
109
|
+
case 'arm64':
|
|
110
|
+
return 'linux-arm64';
|
|
111
|
+
case 'arm':
|
|
112
|
+
return 'linux-arm';
|
|
113
|
+
case 's390x':
|
|
114
|
+
return 'linux-s390x';
|
|
115
|
+
case 'ppc64':
|
|
116
|
+
return 'linux-ppc64';
|
|
117
|
+
default:
|
|
118
|
+
return 'linux-386';
|
|
106
119
|
}
|
|
107
|
-
return "linux-386";
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
function getFileName() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jfrog-cli-v2-jf",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "🐸 Command-line interface for JFrog Artifactory, Xray, Distribution and Mission Control 🐸",
|
|
3
|
+
"version": "2.37.0",
|
|
4
|
+
"description": "🐸 Command-line interface for JFrog Artifactory, Xray, Distribution, Pipelines and Mission Control 🐸",
|
|
5
5
|
"homepage": "https://github.com/jfrog/jfrog-cli",
|
|
6
6
|
"preferGlobal": true,
|
|
7
7
|
"license": "Apache 2.0",
|