neonctl 1.25.1 → 1.25.3
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 +2 -3
- package/commands/branches.test.js +7 -0
- package/package.json +1 -1
- package/utils/enrichers.js +1 -0
package/commands/branches.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndpointType } from '@neondatabase/api-client';
|
|
2
2
|
import { writer } from '../writer.js';
|
|
3
|
-
import { branchCreateRequest
|
|
3
|
+
import { branchCreateRequest } from '../parameters.gen.js';
|
|
4
4
|
import { retryOnLock } from '../api.js';
|
|
5
5
|
import { branchIdFromProps, fillSingleProject } from '../utils/enrichers.js';
|
|
6
6
|
import { looksLikeBranchId, looksLikeLSN, looksLikeTimestamp, } from '../utils/formats.js';
|
|
@@ -51,8 +51,7 @@ export const builder = (argv) => argv
|
|
|
51
51
|
choices: Object.values(EndpointType),
|
|
52
52
|
},
|
|
53
53
|
'suspend-timeout': {
|
|
54
|
-
describe:
|
|
55
|
-
.description,
|
|
54
|
+
describe: 'Duration of inactivity in seconds after which the compute endpoint is\nautomatically suspended. The value `0` means use the global default.\nThe value `-1` means never suspend. The default value is `300` seconds (5 minutes).\nThe maximum value is `604800` seconds (1 week).',
|
|
56
55
|
type: 'number',
|
|
57
56
|
implies: 'compute',
|
|
58
57
|
default: 0,
|
|
@@ -243,6 +243,13 @@ describe('branches', () => {
|
|
|
243
243
|
snapshot: true,
|
|
244
244
|
},
|
|
245
245
|
});
|
|
246
|
+
testCliCommand({
|
|
247
|
+
name: 'get by name with numeric name',
|
|
248
|
+
args: ['branches', 'get', '123', '--project-id', 'test'],
|
|
249
|
+
expected: {
|
|
250
|
+
snapshot: true,
|
|
251
|
+
},
|
|
252
|
+
});
|
|
246
253
|
testCliCommand({
|
|
247
254
|
name: 'add compute',
|
|
248
255
|
args: ['branches', 'add-compute', 'test_branch', '--project-id', 'test'],
|
package/package.json
CHANGED