neonctl 1.33.0 → 1.34.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/commands/branches.js +8 -0
- package/package.json +2 -2
- package/parameters.gen.js +4 -4
package/commands/branches.js
CHANGED
|
@@ -72,6 +72,11 @@ export const builder = (argv) => argv
|
|
|
72
72
|
describe: 'Connect to a new branch via psql',
|
|
73
73
|
default: false,
|
|
74
74
|
},
|
|
75
|
+
annotation: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
hidden: true,
|
|
78
|
+
default: '{}',
|
|
79
|
+
},
|
|
75
80
|
}), (args) => create(args))
|
|
76
81
|
.command('reset <id|name>', 'Reset a branch', (yargs) => yargs.options({
|
|
77
82
|
parent: {
|
|
@@ -227,6 +232,9 @@ const create = async (props) => {
|
|
|
227
232
|
},
|
|
228
233
|
]
|
|
229
234
|
: [],
|
|
235
|
+
annotation_value: props.annotation
|
|
236
|
+
? JSON.parse(props.annotation)
|
|
237
|
+
: undefined,
|
|
230
238
|
}));
|
|
231
239
|
const out = writer(props);
|
|
232
240
|
out.write(data.branch, {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+ssh://git@github.com/neondatabase/neonctl.git"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.34.0",
|
|
9
9
|
"description": "CLI tool for NeonDB Cloud management",
|
|
10
10
|
"main": "index.js",
|
|
11
11
|
"author": "NeonDB",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"vitest": "^1.6.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@neondatabase/api-client": "1.
|
|
57
|
+
"@neondatabase/api-client": "^1.10.0",
|
|
58
58
|
"@segment/analytics-node": "^1.0.0-beta.26",
|
|
59
59
|
"axios": "^1.4.0",
|
|
60
60
|
"axios-debug-log": "^1.0.0",
|
package/parameters.gen.js
CHANGED
|
@@ -37,7 +37,7 @@ export const projectCreateRequest = {
|
|
|
37
37
|
},
|
|
38
38
|
'project.settings.allowed_ips.primary_branch_only': {
|
|
39
39
|
type: "boolean",
|
|
40
|
-
description: "
|
|
40
|
+
description: "DEPRECATED: Use `protected_branches_only`.\nIf true, the list will be applied only to the default branch.\n",
|
|
41
41
|
demandOption: false,
|
|
42
42
|
},
|
|
43
43
|
'project.settings.enable_logical_replication': {
|
|
@@ -140,7 +140,7 @@ export const projectUpdateRequest = {
|
|
|
140
140
|
},
|
|
141
141
|
'project.settings.allowed_ips.primary_branch_only': {
|
|
142
142
|
type: "boolean",
|
|
143
|
-
description: "
|
|
143
|
+
description: "DEPRECATED: Use `protected_branches_only`.\nIf true, the list will be applied only to the default branch.\n",
|
|
144
144
|
demandOption: false,
|
|
145
145
|
},
|
|
146
146
|
'project.settings.enable_logical_replication': {
|
|
@@ -199,7 +199,7 @@ export const branchCreateRequest = {
|
|
|
199
199
|
export const branchCreateRequestEndpointOptions = {
|
|
200
200
|
'type': {
|
|
201
201
|
type: "string",
|
|
202
|
-
description: "The compute endpoint type. Either `read_write` or `read_only`.\
|
|
202
|
+
description: "The compute endpoint type. Either `read_write` or `read_only`.\n",
|
|
203
203
|
demandOption: true,
|
|
204
204
|
choices: ["read_only", "read_write"],
|
|
205
205
|
},
|
|
@@ -240,7 +240,7 @@ export const endpointCreateRequest = {
|
|
|
240
240
|
},
|
|
241
241
|
'endpoint.type': {
|
|
242
242
|
type: "string",
|
|
243
|
-
description: "The compute endpoint type. Either `read_write` or `read_only`.\
|
|
243
|
+
description: "The compute endpoint type. Either `read_write` or `read_only`.\n",
|
|
244
244
|
demandOption: true,
|
|
245
245
|
choices: ["read_only", "read_write"],
|
|
246
246
|
},
|