@hyperdrive.bot/cli 1.0.2
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 +1598 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +3 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/account/add.d.ts +16 -0
- package/dist/commands/account/add.js +185 -0
- package/dist/commands/account/list.d.ts +6 -0
- package/dist/commands/account/list.js +37 -0
- package/dist/commands/account/remove.d.ts +11 -0
- package/dist/commands/account/remove.js +57 -0
- package/dist/commands/auth/login.d.ts +16 -0
- package/dist/commands/auth/login.js +178 -0
- package/dist/commands/auth/logout.d.ts +6 -0
- package/dist/commands/auth/logout.js +39 -0
- package/dist/commands/auth/refresh.d.ts +6 -0
- package/dist/commands/auth/refresh.js +66 -0
- package/dist/commands/auth/status.d.ts +6 -0
- package/dist/commands/auth/status.js +63 -0
- package/dist/commands/ci/account/create.d.ts +16 -0
- package/dist/commands/ci/account/create.js +158 -0
- package/dist/commands/ci/account/delete.d.ts +14 -0
- package/dist/commands/ci/account/delete.js +88 -0
- package/dist/commands/ci/account/list.d.ts +10 -0
- package/dist/commands/ci/account/list.js +65 -0
- package/dist/commands/config/get.d.ts +9 -0
- package/dist/commands/config/get.js +37 -0
- package/dist/commands/config/set.d.ts +10 -0
- package/dist/commands/config/set.js +48 -0
- package/dist/commands/config/show.d.ts +6 -0
- package/dist/commands/config/show.js +10 -0
- package/dist/commands/deployment/create.d.ts +30 -0
- package/dist/commands/deployment/create.js +188 -0
- package/dist/commands/deployment/get.d.ts +13 -0
- package/dist/commands/deployment/get.js +101 -0
- package/dist/commands/deployment/launch.d.ts +15 -0
- package/dist/commands/deployment/launch.js +105 -0
- package/dist/commands/deployment/list.d.ts +11 -0
- package/dist/commands/deployment/list.js +91 -0
- package/dist/commands/domain/current.d.ts +6 -0
- package/dist/commands/domain/current.js +18 -0
- package/dist/commands/domain/list.d.ts +6 -0
- package/dist/commands/domain/list.js +42 -0
- package/dist/commands/domain/switch.d.ts +9 -0
- package/dist/commands/domain/switch.js +40 -0
- package/dist/commands/example.d.ts +13 -0
- package/dist/commands/example.js +24 -0
- package/dist/commands/git/connect.d.ts +10 -0
- package/dist/commands/git/connect.js +56 -0
- package/dist/commands/git/disconnect.d.ts +11 -0
- package/dist/commands/git/disconnect.js +93 -0
- package/dist/commands/git/list.d.ts +10 -0
- package/dist/commands/git/list.js +53 -0
- package/dist/commands/git/sync.d.ts +18 -0
- package/dist/commands/git/sync.js +235 -0
- package/dist/commands/init.d.ts +188 -0
- package/dist/commands/init.js +817 -0
- package/dist/commands/jira/connect.d.ts +9 -0
- package/dist/commands/jira/connect.js +141 -0
- package/dist/commands/jira/status.d.ts +9 -0
- package/dist/commands/jira/status.js +118 -0
- package/dist/commands/module/analyze.d.ts +29 -0
- package/dist/commands/module/analyze.js +201 -0
- package/dist/commands/module/create.d.ts +42 -0
- package/dist/commands/module/create.js +498 -0
- package/dist/commands/module/destroy.d.ts +11 -0
- package/dist/commands/module/destroy.js +77 -0
- package/dist/commands/module/get.d.ts +10 -0
- package/dist/commands/module/get.js +43 -0
- package/dist/commands/module/link.d.ts +15 -0
- package/dist/commands/module/link.js +175 -0
- package/dist/commands/module/list.d.ts +9 -0
- package/dist/commands/module/list.js +51 -0
- package/dist/commands/module/reanalyze.d.ts +30 -0
- package/dist/commands/module/reanalyze.js +206 -0
- package/dist/commands/module/update.d.ts +27 -0
- package/dist/commands/module/update.js +102 -0
- package/dist/commands/parameter/add.d.ts +15 -0
- package/dist/commands/parameter/add.js +99 -0
- package/dist/commands/parameter/backfill.d.ts +12 -0
- package/dist/commands/parameter/backfill.js +113 -0
- package/dist/commands/parameter/clear.d.ts +14 -0
- package/dist/commands/parameter/clear.js +95 -0
- package/dist/commands/parameter/list.d.ts +14 -0
- package/dist/commands/parameter/list.js +92 -0
- package/dist/commands/parameter/pull.d.ts +14 -0
- package/dist/commands/parameter/pull.js +124 -0
- package/dist/commands/parameter/remove.d.ts +15 -0
- package/dist/commands/parameter/remove.js +90 -0
- package/dist/commands/parameter/sync.d.ts +14 -0
- package/dist/commands/parameter/sync.js +153 -0
- package/dist/commands/parameter/update.d.ts +15 -0
- package/dist/commands/parameter/update.js +100 -0
- package/dist/commands/stage/create.d.ts +28 -0
- package/dist/commands/stage/create.js +312 -0
- package/dist/commands/stage/list.d.ts +9 -0
- package/dist/commands/stage/list.js +63 -0
- package/dist/commands/test-api.d.ts +9 -0
- package/dist/commands/test-api.js +40 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/services/auth-service.d.ts +84 -0
- package/dist/services/auth-service.js +240 -0
- package/dist/services/git.d.ts +46 -0
- package/dist/services/git.js +409 -0
- package/dist/services/hyperdrive-sigv4.d.ts +449 -0
- package/dist/services/hyperdrive-sigv4.js +375 -0
- package/dist/services/hyperdrive.d.ts +87 -0
- package/dist/services/hyperdrive.js +108 -0
- package/dist/services/log-tailer.d.ts +95 -0
- package/dist/services/log-tailer.js +242 -0
- package/dist/services/tenant-service.d.ts +106 -0
- package/dist/services/tenant-service.js +332 -0
- package/dist/utils/account-flow.d.ts +74 -0
- package/dist/utils/account-flow.js +228 -0
- package/dist/utils/auth-flow.d.ts +146 -0
- package/dist/utils/auth-flow.js +477 -0
- package/dist/utils/git-flow.d.ts +72 -0
- package/dist/utils/git-flow.js +232 -0
- package/dist/utils/jira-flow.d.ts +71 -0
- package/dist/utils/jira-flow.js +120 -0
- package/dist/utils/summary-display.d.ts +59 -0
- package/dist/utils/summary-display.js +140 -0
- package/dist/utils/validation.d.ts +15 -0
- package/dist/utils/validation.js +32 -0
- package/oclif.manifest.json +2819 -0
- package/package.json +112 -0
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hyperdrive.bot/cli",
|
|
3
|
+
"description": "hyperdrive.bot is a command-line interface (CLI) tool designed for managing and deploying projects using the Hyperdrive API. The CLI acts as a proxy to the Hyperdrive API, enabling users to:",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"author": "marcelomarra",
|
|
6
|
+
"bin": {
|
|
7
|
+
"hd": "./bin/run.js",
|
|
8
|
+
"hyperdrive.bot": "./bin/run.js",
|
|
9
|
+
"hyperdrive": "./bin/run.js"
|
|
10
|
+
},
|
|
11
|
+
"bugs": "https://github.com/hyperdrive/hd/issues",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@aws-crypto/sha256-js": "^5.2.0",
|
|
14
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.958.0",
|
|
15
|
+
"@aws-sdk/client-cognito-identity": "^3.922.0",
|
|
16
|
+
"@aws-sdk/client-cognito-identity-provider": "^3.971.0",
|
|
17
|
+
"@oclif/core": "^3",
|
|
18
|
+
"@oclif/plugin-help": "^6",
|
|
19
|
+
"@oclif/plugin-not-found": "^3.1.8",
|
|
20
|
+
"@oclif/plugin-plugins": "^5",
|
|
21
|
+
"@smithy/protocol-http": "^5.3.4",
|
|
22
|
+
"@smithy/signature-v4": "^5.3.4",
|
|
23
|
+
"axios": "^1.7.1",
|
|
24
|
+
"chalk": "^5.3.0",
|
|
25
|
+
"inquirer": "^9.2.20",
|
|
26
|
+
"jsonwebtoken": "^9.0.3",
|
|
27
|
+
"moment": "^2.30.1",
|
|
28
|
+
"open": "^10.2.0",
|
|
29
|
+
"ora": "^8.0.1"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
33
|
+
"@oclif/test": "^3",
|
|
34
|
+
"@types/chai": "^4",
|
|
35
|
+
"@types/inquirer": "^9.0.7",
|
|
36
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
37
|
+
"@types/mocha": "^10",
|
|
38
|
+
"@types/node": "^18",
|
|
39
|
+
"@types/sinon": "^17",
|
|
40
|
+
"c8": "^10.1.3",
|
|
41
|
+
"chai": "^4",
|
|
42
|
+
"eslint": "^8",
|
|
43
|
+
"eslint-config-oclif": "^5",
|
|
44
|
+
"eslint-config-oclif-typescript": "^3",
|
|
45
|
+
"eslint-config-prettier": "^9",
|
|
46
|
+
"esmock": "^2.7.3",
|
|
47
|
+
"mocha": "^10",
|
|
48
|
+
"oclif": "^4",
|
|
49
|
+
"shx": "^0.3.3",
|
|
50
|
+
"sinon": "^17",
|
|
51
|
+
"ts-node": "^10",
|
|
52
|
+
"typescript": "^5"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=18.0.0"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"bin/",
|
|
59
|
+
"/dist",
|
|
60
|
+
"/oclif.manifest.json"
|
|
61
|
+
],
|
|
62
|
+
"homepage": "https://github.com/hyperdrive/hd",
|
|
63
|
+
"keywords": [
|
|
64
|
+
"oclif"
|
|
65
|
+
],
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"main": "dist/index.js",
|
|
68
|
+
"type": "module",
|
|
69
|
+
"oclif": {
|
|
70
|
+
"bin": "hd",
|
|
71
|
+
"dirname": "hd",
|
|
72
|
+
"commands": "./dist/commands",
|
|
73
|
+
"update": {
|
|
74
|
+
"s3": {
|
|
75
|
+
"bucket": "oclif-update-test",
|
|
76
|
+
"region": "sa-east-1",
|
|
77
|
+
"host": "https://dwf22zv14vbu5.cloudfront.net"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"plugins": [
|
|
81
|
+
"@oclif/plugin-help",
|
|
82
|
+
"@oclif/plugin-plugins"
|
|
83
|
+
],
|
|
84
|
+
"topicSeparator": " "
|
|
85
|
+
},
|
|
86
|
+
"repository": "hyperdrive/hd",
|
|
87
|
+
"scripts": {
|
|
88
|
+
"dev": "nx next:dev",
|
|
89
|
+
"start": "nx next:start",
|
|
90
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
91
|
+
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
|
|
92
|
+
"format": "prettier --write .",
|
|
93
|
+
"type-check": "tsc --noEmit",
|
|
94
|
+
"test:watch": "mocha --watch \"test/**/*.test.ts\"",
|
|
95
|
+
"test:coverage": "c8 --config .c8rc.json mocha \"test/**/*.test.ts\"",
|
|
96
|
+
"test:ci": "c8 --config .c8rc.json mocha \"test/**/*.test.ts\"",
|
|
97
|
+
"cypress": "nx open-cypress",
|
|
98
|
+
"cypress:run": "nx e2e",
|
|
99
|
+
"cypress:forms": "nx e2e --spec 'cypress/e2e/forms.cy.js'",
|
|
100
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
101
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
102
|
+
"prepack": "oclif manifest && oclif readme",
|
|
103
|
+
"test": "mocha \"test/**/*.test.ts\"",
|
|
104
|
+
"version": "oclif readme && git add README.md",
|
|
105
|
+
"publish:docker": "docker logout && aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/j4f5a6i6 && docker build --platform linux/amd64 -t public.ecr.aws/j4f5a6i6/devsquad/hyperdrive:latest . && docker push public.ecr.aws/j4f5a6i6/devsquad/hyperdrive:latest"
|
|
106
|
+
},
|
|
107
|
+
"types": "dist/index.d.ts",
|
|
108
|
+
"publishConfig": {
|
|
109
|
+
"access": "public",
|
|
110
|
+
"registry": "https://registry.npmjs.org/"
|
|
111
|
+
}
|
|
112
|
+
}
|