@p0security/cli 0.18.7 → 0.18.8
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/CONTRIBUTING.md +1 -1
- package/build/dist/commands/index.js +0 -2
- package/build/dist/commands/index.js.map +1 -1
- package/build/dist/commands/scp.js +2 -6
- package/build/dist/commands/scp.js.map +1 -1
- package/build/dist/commands/shared/index.js +4 -1
- package/build/dist/commands/shared/index.js.map +1 -1
- package/build/dist/commands/shared/ssh.d.ts +0 -1
- package/build/dist/commands/shared/ssh.js.map +1 -1
- package/build/dist/commands/ssh-proxy.js +1 -0
- package/build/dist/commands/ssh-proxy.js.map +1 -1
- package/build/dist/commands/ssh-resolve.js +2 -2
- package/build/dist/commands/ssh-resolve.js.map +1 -1
- package/build/dist/commands/ssh.js +2 -1
- package/build/dist/commands/ssh.js.map +1 -1
- package/build/dist/drivers/api.d.ts +7 -0
- package/build/dist/drivers/api.js +26 -1
- package/build/dist/drivers/api.js.map +1 -1
- package/build/dist/plugins/ssh/index.d.ts +2 -0
- package/build/dist/plugins/ssh/index.js +32 -6
- package/build/dist/plugins/ssh/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/build/dist/commands/ssh-keygen.d.ts +0 -2
- package/build/dist/commands/ssh-keygen.js +0 -28
- package/build/dist/commands/ssh-keygen.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@p0security/cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.8",
|
|
4
4
|
"description": "Execute infra CLI commands with P0 grants",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"repository": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"semver": "^7.6.0",
|
|
44
44
|
"tmp-promise": "^3.0.3",
|
|
45
45
|
"typescript": "^4.8.4",
|
|
46
|
+
"uuid": "^11.1.0",
|
|
46
47
|
"which": "^4.0.0",
|
|
47
48
|
"yargs": "^17.6.0"
|
|
48
49
|
},
|
|
@@ -75,7 +76,8 @@
|
|
|
75
76
|
},
|
|
76
77
|
"scripts": {
|
|
77
78
|
"build": "tsc && cp -r public build/dist/",
|
|
78
|
-
"build:
|
|
79
|
+
"build:macos": "tsc && cp -r public build/dist/ && node esbuild.js",
|
|
80
|
+
"build:windows": "tsc && xcopy public build\\dist\\ /E /I /Y && node esbuild.js",
|
|
79
81
|
"test:unit": "NODE_ENV=unit jest --color",
|
|
80
82
|
"clean": "rm -rf build",
|
|
81
83
|
"lint": "yarn prettier --check . && yarn run eslint --max-warnings 0 .",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.sshKeyGenCommand = void 0;
|
|
13
|
-
/** Copyright © 2024-present P0 Security
|
|
14
|
-
|
|
15
|
-
This file is part of @p0security/cli
|
|
16
|
-
|
|
17
|
-
@p0security/cli is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
|
|
18
|
-
|
|
19
|
-
@p0security/cli is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
20
|
-
|
|
21
|
-
You should have received a copy of the GNU General Public License along with @p0security/cli. If not, see <https://www.gnu.org/licenses/>.
|
|
22
|
-
**/
|
|
23
|
-
const keys_1 = require("../common/keys");
|
|
24
|
-
const sshKeyGenCommand = (yargs) => yargs.command("ssh-keygen", `Generate an SSH key pair for use with P0 and store it in your ${keys_1.P0_KEY_FOLDER} folder, if one does not exist already. This key pair is also automatically generated by using any "p0 ssh/scp ..." command.`, (yargs) => yargs, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
|
-
yield (0, keys_1.createKeyPair)();
|
|
26
|
-
}));
|
|
27
|
-
exports.sshKeyGenCommand = sshKeyGenCommand;
|
|
28
|
-
//# sourceMappingURL=ssh-keygen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssh-keygen.js","sourceRoot":"","sources":["../../../src/commands/ssh-keygen.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,yCAA8D;AAGvD,MAAM,gBAAgB,GAAG,CAAC,KAAiB,EAAE,EAAE,CACpD,KAAK,CAAC,OAAO,CACX,YAAY,EACZ,iEAAiE,oBAAa,8HAA8H,EAC5M,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAChB,GAAS,EAAE;IACT,MAAM,IAAA,oBAAa,GAAE,CAAC;AACxB,CAAC,CAAA,CACF,CAAC;AARS,QAAA,gBAAgB,oBAQzB"}
|