@hyperdrive.bot/cli 1.0.5 ā 1.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/README.md +169 -63
- package/dist/commands/account/add.d.ts +6 -6
- package/dist/commands/account/remove.d.ts +3 -3
- package/dist/commands/auth/login.d.ts +4 -4
- package/dist/commands/auth/login.js +1 -0
- package/dist/commands/ci/account/create.d.ts +7 -6
- package/dist/commands/ci/account/create.js +49 -3
- package/dist/commands/ci/account/delete.d.ts +3 -3
- package/dist/commands/ci/account/list.d.ts +2 -2
- package/dist/commands/config/get.d.ts +1 -1
- package/dist/commands/config/set.d.ts +2 -2
- package/dist/commands/deployment/create.d.ts +10 -10
- package/dist/commands/deployment/get.d.ts +4 -4
- package/dist/commands/deployment/launch.d.ts +6 -6
- package/dist/commands/deployment/list.d.ts +3 -3
- package/dist/commands/deployment/list.js +17 -17
- package/dist/commands/domain/switch.d.ts +1 -1
- package/dist/commands/example.d.ts +3 -3
- package/dist/commands/git/connect.d.ts +2 -2
- package/dist/commands/git/disconnect.d.ts +3 -3
- package/dist/commands/git/list.d.ts +2 -2
- package/dist/commands/git/sync.d.ts +7 -7
- package/dist/commands/git/sync.js +24 -23
- package/dist/commands/jira/connect.d.ts +1 -1
- package/dist/commands/jira/status.d.ts +1 -1
- package/dist/commands/module/analyze.d.ts +5 -5
- package/dist/commands/module/create.d.ts +17 -17
- package/dist/commands/module/create.js +9 -1
- package/dist/commands/module/destroy.d.ts +3 -3
- package/dist/commands/module/get.d.ts +2 -2
- package/dist/commands/module/link.d.ts +4 -4
- package/dist/commands/module/list.d.ts +1 -1
- package/dist/commands/module/list.js +12 -11
- package/dist/commands/module/reanalyze.d.ts +6 -6
- package/dist/commands/module/update.d.ts +19 -19
- package/dist/commands/parameter/add.d.ts +7 -7
- package/dist/commands/parameter/backfill.d.ts +4 -4
- package/dist/commands/parameter/backfill.js +4 -3
- package/dist/commands/parameter/clear.d.ts +6 -6
- package/dist/commands/parameter/list.d.ts +6 -6
- package/dist/commands/parameter/list.js +4 -3
- package/dist/commands/parameter/pull.d.ts +6 -6
- package/dist/commands/parameter/remove.d.ts +7 -7
- package/dist/commands/parameter/sync.d.ts +6 -6
- package/dist/commands/parameter/update.d.ts +7 -7
- package/dist/commands/stage/access.d.ts +15 -0
- package/dist/commands/stage/access.js +130 -0
- package/dist/commands/stage/create.d.ts +11 -11
- package/dist/commands/stage/list.d.ts +1 -1
- package/dist/commands/stage/list.js +21 -20
- package/dist/commands/stage/revoke.d.ts +18 -0
- package/dist/commands/stage/revoke.js +171 -0
- package/dist/commands/stage/share.d.ts +23 -0
- package/dist/commands/stage/share.js +292 -0
- package/dist/commands/test-api.d.ts +1 -1
- package/dist/services/auth-service.d.ts +15 -82
- package/dist/services/auth-service.js +24 -237
- package/dist/services/hyperdrive-sigv4.d.ts +37 -24
- package/dist/services/hyperdrive-sigv4.js +62 -193
- package/dist/services/tenant-service.d.ts +6 -0
- package/dist/services/tenant-service.js +13 -0
- package/dist/utils/auth-flow.d.ts +1 -0
- package/dist/utils/auth-flow.js +2 -0
- package/dist/utils/table.d.ts +17 -0
- package/dist/utils/table.js +41 -0
- package/oclif.manifest.json +309 -81
- package/package.json +55 -15
|
@@ -3,23 +3,23 @@ export default class ModuleCreate extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
buildCommand: import("@oclif/core/
|
|
7
|
-
buildDirectory: import("@oclif/core/
|
|
8
|
-
buildFolder: import("@oclif/core/
|
|
9
|
-
buildRuntime: import("@oclif/core/
|
|
10
|
-
buildRuntimeVersion: import("@oclif/core/
|
|
11
|
-
ciService: import("@oclif/core/
|
|
12
|
-
defaultBranch: import("@oclif/core/
|
|
13
|
-
domain: import("@oclif/core/
|
|
14
|
-
framework: import("@oclif/core/
|
|
15
|
-
installCommand: import("@oclif/core/
|
|
16
|
-
name: import("@oclif/core/
|
|
17
|
-
runCommand: import("@oclif/core/
|
|
18
|
-
runtime: import("@oclif/core/
|
|
19
|
-
runtimeVersion: import("@oclif/core/
|
|
20
|
-
slug: import("@oclif/core/
|
|
21
|
-
sourceDirectory: import("@oclif/core/
|
|
22
|
-
sourceLocation: import("@oclif/core/
|
|
6
|
+
buildCommand: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
buildDirectory: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
buildFolder: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
buildRuntime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
buildRuntimeVersion: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
ciService: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
defaultBranch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
framework: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
installCommand: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
runCommand: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
runtime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
runtimeVersion: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
slug: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
sourceDirectory: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
sourceLocation: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
23
|
};
|
|
24
24
|
run(): Promise<void>;
|
|
25
25
|
/**
|
|
@@ -42,7 +42,7 @@ export default class ModuleCreate extends Command {
|
|
|
42
42
|
}),
|
|
43
43
|
framework: Flags.string({
|
|
44
44
|
description: 'Framework used',
|
|
45
|
-
options: ['express', 'fastify', 'koa', 'nextjs', 'react', 'vue', 'angular', 'svelte', 'flask', 'django', 'fastapi', 'gin', 'actix', 'spring', 'aspnet', 'rails', 'other'],
|
|
45
|
+
options: ['express', 'fastify', 'koa', 'nextjs', 'react', 'vue', 'angular', 'svelte', 'flask', 'django', 'fastapi', 'gin', 'actix', 'spring', 'aspnet', 'rails', 'serverless', 'serverless-express', 'serverless-nestjs', 'other'],
|
|
46
46
|
}),
|
|
47
47
|
installCommand: Flags.string({
|
|
48
48
|
description: 'Install command',
|
|
@@ -155,6 +155,11 @@ export default class ModuleCreate extends Command {
|
|
|
155
155
|
if (gitInfo) {
|
|
156
156
|
cleanedData.gitProvider = gitInfo.provider;
|
|
157
157
|
}
|
|
158
|
+
// Set deploymentStrategy for Serverless Framework projects
|
|
159
|
+
const framework = cleanedData.framework;
|
|
160
|
+
if (framework === 'serverless' || framework === 'serverless-express' || framework === 'serverless-nestjs') {
|
|
161
|
+
cleanedData.deploymentStrategy = 'serverless';
|
|
162
|
+
}
|
|
158
163
|
const result = await service.moduleCreate(cleanedData);
|
|
159
164
|
writeFileSync('.hyperdrive.json', JSON.stringify(result, null, 2), 'utf8');
|
|
160
165
|
this.log(chalk.blue('⨠Project created successfully! Here are the details:'));
|
|
@@ -450,6 +455,9 @@ export default class ModuleCreate extends Command {
|
|
|
450
455
|
if (!flags.framework) {
|
|
451
456
|
prompts.push({
|
|
452
457
|
choices: [
|
|
458
|
+
{ name: 'Serverless Framework (sls deploy)', value: 'serverless' },
|
|
459
|
+
{ name: 'Serverless + Express (serverless-http)', value: 'serverless-express' },
|
|
460
|
+
{ name: 'Serverless + NestJS', value: 'serverless-nestjs' },
|
|
453
461
|
{ name: 'Express.js', value: 'express' },
|
|
454
462
|
{ name: 'Fastify', value: 'fastify' },
|
|
455
463
|
{ name: 'Koa', value: 'koa' },
|
|
@@ -3,9 +3,9 @@ export default class ModuleDestroy extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
domain: import("@oclif/core/
|
|
7
|
-
force: import("@oclif/core/
|
|
8
|
-
slug: import("@oclif/core/
|
|
6
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
slug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
};
|
|
10
10
|
run(): Promise<void>;
|
|
11
11
|
}
|
|
@@ -3,8 +3,8 @@ export default class ModuleGet extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
domain: import("@oclif/core/
|
|
7
|
-
slug: import("@oclif/core/
|
|
6
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
slug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
run(): Promise<void>;
|
|
10
10
|
}
|
|
@@ -3,10 +3,10 @@ export default class ModuleLink extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
domain: import("@oclif/core/
|
|
7
|
-
originSlug: import("@oclif/core/
|
|
8
|
-
parameter: import("@oclif/core/
|
|
9
|
-
targetSlug: import("@oclif/core/
|
|
6
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
originSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
parameter: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
targetSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
};
|
|
11
11
|
confirmDeploymentBehavior(): Promise<any>;
|
|
12
12
|
prompt(): Promise<void>;
|
|
@@ -3,7 +3,7 @@ export default class ModuleList extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
domain: import("@oclif/core/
|
|
6
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
7
|
};
|
|
8
8
|
run(): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Command, Flags
|
|
1
|
+
import { Command, Flags } from '@oclif/core';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { HyperdriveSigV4Service } from '../../services/hyperdrive-sigv4.js';
|
|
4
|
+
import { printTable } from '../../utils/table.js';
|
|
4
5
|
export default class ModuleList extends Command {
|
|
5
6
|
static description = 'List all modules/projects';
|
|
6
7
|
static examples = [
|
|
@@ -24,24 +25,24 @@ export default class ModuleList extends Command {
|
|
|
24
25
|
}
|
|
25
26
|
this.log(chalk.green(`ā
Found ${modules.length} module(s)\n`));
|
|
26
27
|
// Display modules in a table
|
|
27
|
-
|
|
28
|
-
createdAt: {
|
|
29
|
-
get: (row) => new Date(row.createdAt).toLocaleDateString(),
|
|
30
|
-
header: 'Created',
|
|
31
|
-
},
|
|
32
|
-
framework: {
|
|
33
|
-
header: 'Framework',
|
|
34
|
-
},
|
|
28
|
+
printTable(modules, {
|
|
35
29
|
name: {
|
|
36
30
|
header: 'Name',
|
|
37
31
|
minWidth: 20,
|
|
38
32
|
},
|
|
39
33
|
slug: {
|
|
40
|
-
get: (row) => chalk.cyan(row.slug),
|
|
41
34
|
header: 'Slug',
|
|
42
35
|
minWidth: 15,
|
|
36
|
+
get: (row) => chalk.cyan(row.slug),
|
|
37
|
+
},
|
|
38
|
+
framework: {
|
|
39
|
+
header: 'Framework',
|
|
40
|
+
},
|
|
41
|
+
createdAt: {
|
|
42
|
+
header: 'Created',
|
|
43
|
+
get: (row) => new Date(row.createdAt).toLocaleDateString(),
|
|
43
44
|
},
|
|
44
|
-
});
|
|
45
|
+
}, (msg) => this.log(msg));
|
|
45
46
|
}
|
|
46
47
|
catch (error) {
|
|
47
48
|
console.error('Error:', error);
|
|
@@ -3,12 +3,12 @@ export default class DockerfileReanalyze extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
domain: import("@oclif/core/
|
|
7
|
-
prompt: import("@oclif/core/
|
|
8
|
-
save: import("@oclif/core/
|
|
9
|
-
slug: import("@oclif/core/
|
|
10
|
-
verbose: import("@oclif/core/
|
|
11
|
-
wait: import("@oclif/core/
|
|
6
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
prompt: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
save: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
slug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
wait: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
/**
|
|
@@ -3,25 +3,25 @@ export default class ModuleUpdate extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
buildCommand: import("@oclif/core/
|
|
7
|
-
buildDirectory: import("@oclif/core/
|
|
8
|
-
buildFolder: import("@oclif/core/
|
|
9
|
-
buildRuntime: import("@oclif/core/
|
|
10
|
-
buildRuntimeVersion: import("@oclif/core/
|
|
11
|
-
ciService: import("@oclif/core/
|
|
12
|
-
defaultBranch: import("@oclif/core/
|
|
13
|
-
deploymentStrategy: import("@oclif/core/
|
|
14
|
-
domain: import("@oclif/core/
|
|
15
|
-
framework: import("@oclif/core/
|
|
16
|
-
installCommand: import("@oclif/core/
|
|
17
|
-
name: import("@oclif/core/
|
|
18
|
-
routeDiscovery: import("@oclif/core/
|
|
19
|
-
runCommand: import("@oclif/core/
|
|
20
|
-
runtime: import("@oclif/core/
|
|
21
|
-
runtimeVersion: import("@oclif/core/
|
|
22
|
-
slug: import("@oclif/core/
|
|
23
|
-
sourceDirectory: import("@oclif/core/
|
|
24
|
-
sourceLocation: import("@oclif/core/
|
|
6
|
+
buildCommand: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
buildDirectory: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
buildFolder: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
buildRuntime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
buildRuntimeVersion: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
ciService: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
defaultBranch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
deploymentStrategy: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
framework: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
installCommand: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
routeDiscovery: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
|
+
runCommand: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
runtime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
runtimeVersion: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
slug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
sourceDirectory: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
sourceLocation: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
25
|
};
|
|
26
26
|
run(): Promise<void>;
|
|
27
27
|
}
|
|
@@ -3,13 +3,13 @@ export default class ParameterAdd extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
domain: import("@oclif/core/
|
|
8
|
-
key: import("@oclif/core/
|
|
9
|
-
moduleSlug: import("@oclif/core/
|
|
10
|
-
specific: import("@oclif/core/
|
|
11
|
-
stage: import("@oclif/core/
|
|
12
|
-
value: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
specific: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
value: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -3,10 +3,10 @@ export default class ParameterBackfill extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
domain: import("@oclif/core/
|
|
8
|
-
'dry-run': import("@oclif/core/
|
|
9
|
-
'no-dry-run': import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'no-dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
};
|
|
11
11
|
run(): Promise<void>;
|
|
12
12
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Command, Flags
|
|
1
|
+
import { Command, Flags } from '@oclif/core';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import inquirer from 'inquirer';
|
|
4
4
|
import { HyperdriveSigV4Service } from '../../services/hyperdrive-sigv4.js';
|
|
5
|
+
import { printTable } from '../../utils/table.js';
|
|
5
6
|
export default class ParameterBackfill extends Command {
|
|
6
7
|
static description = 'Backfill existing SSM parameters to DynamoDB (one-time migration)';
|
|
7
8
|
static examples = [
|
|
@@ -78,12 +79,12 @@ export default class ParameterBackfill extends Command {
|
|
|
78
79
|
stage: p.stage,
|
|
79
80
|
status: p.imported ? chalk.green('ā') : chalk.yellow('skipped'),
|
|
80
81
|
}));
|
|
81
|
-
|
|
82
|
+
printTable(tableData, {
|
|
82
83
|
key: { header: 'Key', minWidth: 30 },
|
|
83
84
|
project: { header: 'Project', minWidth: 15 },
|
|
84
85
|
stage: { header: 'Stage', minWidth: 10 },
|
|
85
86
|
status: { header: 'Status', minWidth: 10 },
|
|
86
|
-
});
|
|
87
|
+
}, (msg) => this.log(msg));
|
|
87
88
|
if (result.parameters.length > 50) {
|
|
88
89
|
this.log(chalk.gray(` ... and ${result.parameters.length - 50} more`));
|
|
89
90
|
}
|
|
@@ -3,12 +3,12 @@ export default class ParameterClear extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
domain: import("@oclif/core/
|
|
8
|
-
force: import("@oclif/core/
|
|
9
|
-
moduleSlug: import("@oclif/core/
|
|
10
|
-
specific: import("@oclif/core/
|
|
11
|
-
stage: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
specific: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -3,12 +3,12 @@ export default class ParameterList extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
'all-stages': import("@oclif/core/
|
|
8
|
-
domain: import("@oclif/core/
|
|
9
|
-
moduleSlug: import("@oclif/core/
|
|
10
|
-
specific: import("@oclif/core/
|
|
11
|
-
stage: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
'all-stages': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
specific: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Command, Flags
|
|
1
|
+
import { Command, Flags } from '@oclif/core';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { existsSync, readFileSync } from 'node:fs';
|
|
4
4
|
import { HyperdriveSigV4Service } from '../../services/hyperdrive-sigv4.js';
|
|
5
|
+
import { printTable } from '../../utils/table.js';
|
|
5
6
|
export default class ParameterList extends Command {
|
|
6
7
|
static description = 'List all parameters for a project and stage';
|
|
7
8
|
static examples = [
|
|
@@ -66,7 +67,7 @@ export default class ParameterList extends Command {
|
|
|
66
67
|
key,
|
|
67
68
|
value: value.substring(0, 50) + (value.length > 50 ? '...' : ''),
|
|
68
69
|
}));
|
|
69
|
-
|
|
70
|
+
printTable(tableData, {
|
|
70
71
|
key: {
|
|
71
72
|
header: 'Parameter Key',
|
|
72
73
|
minWidth: 20,
|
|
@@ -75,7 +76,7 @@ export default class ParameterList extends Command {
|
|
|
75
76
|
header: 'Value',
|
|
76
77
|
minWidth: 30,
|
|
77
78
|
},
|
|
78
|
-
});
|
|
79
|
+
}, (msg) => this.log(msg));
|
|
79
80
|
// Display summary
|
|
80
81
|
this.log(chalk.gray('\nš Summary:'));
|
|
81
82
|
if (result.pathsParametersCount) {
|
|
@@ -3,12 +3,12 @@ export default class ParameterPull extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
backup: import("@oclif/core/
|
|
8
|
-
domain: import("@oclif/core/
|
|
9
|
-
file: import("@oclif/core/
|
|
10
|
-
moduleSlug: import("@oclif/core/
|
|
11
|
-
stage: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
backup: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
file: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -3,13 +3,13 @@ export default class ParameterRemove extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
domain: import("@oclif/core/
|
|
8
|
-
force: import("@oclif/core/
|
|
9
|
-
key: import("@oclif/core/
|
|
10
|
-
moduleSlug: import("@oclif/core/
|
|
11
|
-
specific: import("@oclif/core/
|
|
12
|
-
stage: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
specific: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -3,12 +3,12 @@ export default class ParameterSync extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
domain: import("@oclif/core/
|
|
8
|
-
file: import("@oclif/core/
|
|
9
|
-
moduleSlug: import("@oclif/core/
|
|
10
|
-
specific: import("@oclif/core/
|
|
11
|
-
stage: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
file: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
specific: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -3,13 +3,13 @@ export default class ParameterUpdate extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
accountId: import("@oclif/core/
|
|
7
|
-
domain: import("@oclif/core/
|
|
8
|
-
key: import("@oclif/core/
|
|
9
|
-
moduleSlug: import("@oclif/core/
|
|
10
|
-
specific: import("@oclif/core/
|
|
11
|
-
stage: import("@oclif/core/
|
|
12
|
-
value: import("@oclif/core/
|
|
6
|
+
accountId: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
moduleSlug: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
specific: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
stage: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
value: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class StageAccess extends Command {
|
|
3
|
+
static args: {
|
|
4
|
+
stage: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
8
|
+
static flags: {
|
|
9
|
+
domain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
format: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
private formatRole;
|
|
14
|
+
private promptForStage;
|
|
15
|
+
}
|