@keywaysh/cli 0.0.6 → 0.0.7
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/dist/cli.js +68 -71
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -65,12 +65,72 @@ var INTERNAL_API_URL = "https://api.keyway.sh";
|
|
|
65
65
|
var INTERNAL_POSTHOG_KEY = "phc_duG0qqI5z8LeHrS9pNxR5KaD4djgD0nmzUxuD3zP0ov";
|
|
66
66
|
var INTERNAL_POSTHOG_HOST = "https://eu.i.posthog.com";
|
|
67
67
|
|
|
68
|
+
// package.json with { type: 'json' }
|
|
69
|
+
var package_default = {
|
|
70
|
+
name: "@keywaysh/cli",
|
|
71
|
+
version: "0.0.7",
|
|
72
|
+
description: "One link to all your secrets",
|
|
73
|
+
type: "module",
|
|
74
|
+
bin: {
|
|
75
|
+
keyway: "./dist/cli.js"
|
|
76
|
+
},
|
|
77
|
+
main: "./dist/cli.js",
|
|
78
|
+
files: [
|
|
79
|
+
"dist"
|
|
80
|
+
],
|
|
81
|
+
scripts: {
|
|
82
|
+
dev: "pnpm exec tsx src/cli.ts",
|
|
83
|
+
build: "pnpm exec tsup",
|
|
84
|
+
"build:watch": "pnpm exec tsup --watch",
|
|
85
|
+
prepublishOnly: "pnpm run build",
|
|
86
|
+
test: "pnpm exec vitest run",
|
|
87
|
+
"test:watch": "pnpm exec vitest",
|
|
88
|
+
release: "npm version patch && git push && git push --tags",
|
|
89
|
+
"release:minor": "npm version minor && git push && git push --tags",
|
|
90
|
+
"release:major": "npm version major && git push && git push --tags"
|
|
91
|
+
},
|
|
92
|
+
keywords: [
|
|
93
|
+
"secrets",
|
|
94
|
+
"env",
|
|
95
|
+
"keyway",
|
|
96
|
+
"cli",
|
|
97
|
+
"devops"
|
|
98
|
+
],
|
|
99
|
+
author: "Nicolas Ritouet",
|
|
100
|
+
license: "MIT",
|
|
101
|
+
homepage: "https://keyway.sh",
|
|
102
|
+
repository: {
|
|
103
|
+
type: "git",
|
|
104
|
+
url: "https://github.com/keywaysh/cli.git"
|
|
105
|
+
},
|
|
106
|
+
bugs: {
|
|
107
|
+
url: "https://github.com/keywaysh/cli/issues"
|
|
108
|
+
},
|
|
109
|
+
packageManager: "pnpm@10.6.1",
|
|
110
|
+
engines: {
|
|
111
|
+
node: ">=18.0.0"
|
|
112
|
+
},
|
|
113
|
+
dependencies: {
|
|
114
|
+
chalk: "^4.1.2",
|
|
115
|
+
commander: "^14.0.0",
|
|
116
|
+
conf: "^15.0.2",
|
|
117
|
+
open: "^11.0.0",
|
|
118
|
+
"posthog-node": "^3.5.0",
|
|
119
|
+
prompts: "^2.4.2"
|
|
120
|
+
},
|
|
121
|
+
devDependencies: {
|
|
122
|
+
"@types/node": "^24.2.0",
|
|
123
|
+
"@types/prompts": "^2.4.9",
|
|
124
|
+
tsup: "^8.5.0",
|
|
125
|
+
tsx: "^4.20.3",
|
|
126
|
+
typescript: "^5.9.2",
|
|
127
|
+
vitest: "^3.2.4"
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
68
131
|
// src/utils/api.ts
|
|
69
|
-
import { createRequire } from "module";
|
|
70
|
-
var require2 = createRequire(import.meta.url);
|
|
71
|
-
var pkg = require2("../../package.json");
|
|
72
132
|
var API_BASE_URL = process.env.KEYWAY_API_URL || INTERNAL_API_URL;
|
|
73
|
-
var USER_AGENT = `keyway-cli/${
|
|
133
|
+
var USER_AGENT = `keyway-cli/${package_default.version}`;
|
|
74
134
|
var APIError = class extends Error {
|
|
75
135
|
constructor(statusCode, error, message) {
|
|
76
136
|
super(message);
|
|
@@ -218,9 +278,9 @@ import os from "os";
|
|
|
218
278
|
import fs from "fs";
|
|
219
279
|
|
|
220
280
|
// package.json
|
|
221
|
-
var
|
|
281
|
+
var package_default2 = {
|
|
222
282
|
name: "@keywaysh/cli",
|
|
223
|
-
version: "0.0.
|
|
283
|
+
version: "0.0.7",
|
|
224
284
|
description: "One link to all your secrets",
|
|
225
285
|
type: "module",
|
|
226
286
|
bin: {
|
|
@@ -337,7 +397,7 @@ function trackEvent(event, properties) {
|
|
|
337
397
|
source: "cli",
|
|
338
398
|
platform: process.platform,
|
|
339
399
|
nodeVersion: process.version,
|
|
340
|
-
version:
|
|
400
|
+
version: package_default2.version,
|
|
341
401
|
ci: CI
|
|
342
402
|
}
|
|
343
403
|
});
|
|
@@ -1284,69 +1344,6 @@ Summary: ${formatSummary(results)}`);
|
|
|
1284
1344
|
}
|
|
1285
1345
|
}
|
|
1286
1346
|
|
|
1287
|
-
// package.json with { type: 'json' }
|
|
1288
|
-
var package_default2 = {
|
|
1289
|
-
name: "@keywaysh/cli",
|
|
1290
|
-
version: "0.0.6",
|
|
1291
|
-
description: "One link to all your secrets",
|
|
1292
|
-
type: "module",
|
|
1293
|
-
bin: {
|
|
1294
|
-
keyway: "./dist/cli.js"
|
|
1295
|
-
},
|
|
1296
|
-
main: "./dist/cli.js",
|
|
1297
|
-
files: [
|
|
1298
|
-
"dist"
|
|
1299
|
-
],
|
|
1300
|
-
scripts: {
|
|
1301
|
-
dev: "pnpm exec tsx src/cli.ts",
|
|
1302
|
-
build: "pnpm exec tsup",
|
|
1303
|
-
"build:watch": "pnpm exec tsup --watch",
|
|
1304
|
-
prepublishOnly: "pnpm run build",
|
|
1305
|
-
test: "pnpm exec vitest run",
|
|
1306
|
-
"test:watch": "pnpm exec vitest",
|
|
1307
|
-
release: "npm version patch && git push && git push --tags",
|
|
1308
|
-
"release:minor": "npm version minor && git push && git push --tags",
|
|
1309
|
-
"release:major": "npm version major && git push && git push --tags"
|
|
1310
|
-
},
|
|
1311
|
-
keywords: [
|
|
1312
|
-
"secrets",
|
|
1313
|
-
"env",
|
|
1314
|
-
"keyway",
|
|
1315
|
-
"cli",
|
|
1316
|
-
"devops"
|
|
1317
|
-
],
|
|
1318
|
-
author: "Nicolas Ritouet",
|
|
1319
|
-
license: "MIT",
|
|
1320
|
-
homepage: "https://keyway.sh",
|
|
1321
|
-
repository: {
|
|
1322
|
-
type: "git",
|
|
1323
|
-
url: "https://github.com/keywaysh/cli.git"
|
|
1324
|
-
},
|
|
1325
|
-
bugs: {
|
|
1326
|
-
url: "https://github.com/keywaysh/cli/issues"
|
|
1327
|
-
},
|
|
1328
|
-
packageManager: "pnpm@10.6.1",
|
|
1329
|
-
engines: {
|
|
1330
|
-
node: ">=18.0.0"
|
|
1331
|
-
},
|
|
1332
|
-
dependencies: {
|
|
1333
|
-
chalk: "^4.1.2",
|
|
1334
|
-
commander: "^14.0.0",
|
|
1335
|
-
conf: "^15.0.2",
|
|
1336
|
-
open: "^11.0.0",
|
|
1337
|
-
"posthog-node": "^3.5.0",
|
|
1338
|
-
prompts: "^2.4.2"
|
|
1339
|
-
},
|
|
1340
|
-
devDependencies: {
|
|
1341
|
-
"@types/node": "^24.2.0",
|
|
1342
|
-
"@types/prompts": "^2.4.9",
|
|
1343
|
-
tsup: "^8.5.0",
|
|
1344
|
-
tsx: "^4.20.3",
|
|
1345
|
-
typescript: "^5.9.2",
|
|
1346
|
-
vitest: "^3.2.4"
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
1347
|
// src/cli.ts
|
|
1351
1348
|
var program = new Command();
|
|
1352
1349
|
var showBanner = () => {
|
|
@@ -1358,7 +1355,7 @@ ${subtitle}
|
|
|
1358
1355
|
`);
|
|
1359
1356
|
};
|
|
1360
1357
|
showBanner();
|
|
1361
|
-
program.name("keyway").description("GitHub-native secrets manager for dev teams").version(
|
|
1358
|
+
program.name("keyway").description("GitHub-native secrets manager for dev teams").version(package_default.version);
|
|
1362
1359
|
program.command("init").description("Initialize a vault for the current repository").option("--no-login-prompt", "Fail instead of prompting to login if unauthenticated").action(async (options) => {
|
|
1363
1360
|
await initCommand(options);
|
|
1364
1361
|
});
|