@docupace/pipeline 1.0.4-4.5 → 1.0.4-4.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.44.5",
3
+ "version": "1.0.44.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/auth0/cli.js CHANGED
@@ -1,76 +1,76 @@
1
- #!/usr/bin/env node
2
-
3
- import { Command } from 'commander';
4
- import { configureFromSite } from './configure.js';
5
- import { getVaultSecrets } from './vault.js';
6
-
7
- import dotenv from 'dotenv';
8
- import { configureAlias } from './alias.js';
9
- import { exportConf } from './export.js';
10
- import { getAuth0Metadata } from './metadata.js';
11
-
12
- dotenv.config({ path: ['.env.pipeline.local', 'config/.env.pipeline.local'] });
13
-
14
- const program = new Command();
15
-
16
- program
17
- .command(
18
- 'configureFromSite <fromSite> <toSite> <fromEnv> <toEnv> <deployUI> <deployGraphQLServer> <useNewDomain> <useS3> <deployCCUI>',
19
- )
20
- .description('Configure the Auth0 tenants in env for the given site')
21
- .action(
22
- async (
23
- fromSite,
24
- toSite,
25
- fromEnv,
26
- toEnv,
27
- deployUI,
28
- deployGraphQLServer,
29
- useNewDomain,
30
- useS3,
31
- deployCCUI,
32
- ) => {
33
- await configureFromSite(
34
- fromSite,
35
- toSite,
36
- fromEnv,
37
- toEnv,
38
- deployUI,
39
- deployGraphQLServer,
40
- useNewDomain,
41
- useS3 === 'true' || useS3 === true,
42
- deployCCUI,
43
- );
44
- },
45
- );
46
-
47
- program
48
- .command('getVaultSecrets <vaultPath>')
49
- .description('Get Secrets for Vault PATH')
50
- .action(async (vaultPath) => {
51
- const data = await getVaultSecrets(vaultPath);
52
- console.log(JSON.stringify(data, 'null', 2));
53
- });
54
-
55
- program
56
- .command('configureAlias <site> <env> <username> <password> <realm>')
57
- .description('Configure Core Alias for the given site')
58
- .action(async (site, env, username, password, realm) => {
59
- await configureAlias(site, env, username, password, realm);
60
- });
61
-
62
- program
63
- .command('exportConf <site> <env>')
64
- .description('Export Auth0 configuration for the given site')
65
- .action(async (site, env) => {
66
- await exportConf(site, env);
67
- });
68
-
69
- program
70
- .command('getAuth0Metadata <site> <env>')
71
- .description('Get Auth0 metadata for the given site')
72
- .action(async (site, env) => {
73
- await getAuth0Metadata(site, env);
74
- });
75
-
76
- program.parse(process.argv);
1
+ #!/usr/bin/env node
2
+
3
+ import { Command } from 'commander';
4
+ import { configureFromSite } from './configure.js';
5
+ import { getVaultSecrets } from './vault.js';
6
+
7
+ import dotenv from 'dotenv';
8
+ import { configureAlias } from './alias.js';
9
+ import { exportConf } from './export.js';
10
+ import { getAuth0Metadata } from './metadata.js';
11
+
12
+ dotenv.config({ path: ['.env.pipeline.local', 'config/.env.pipeline.local'] });
13
+
14
+ const program = new Command();
15
+
16
+ program
17
+ .command(
18
+ 'configureFromSite <fromSite> <toSite> <fromEnv> <toEnv> <deployUI> <deployGraphQLServer> <useNewDomain> <useS3> <deployCCUI>',
19
+ )
20
+ .description('Configure the Auth0 tenants in env for the given site')
21
+ .action(
22
+ async (
23
+ fromSite,
24
+ toSite,
25
+ fromEnv,
26
+ toEnv,
27
+ deployUI,
28
+ deployGraphQLServer,
29
+ useNewDomain,
30
+ useS3,
31
+ deployCCUI,
32
+ ) => {
33
+ await configureFromSite(
34
+ fromSite,
35
+ toSite,
36
+ fromEnv,
37
+ toEnv,
38
+ deployUI,
39
+ deployGraphQLServer,
40
+ useNewDomain,
41
+ useS3 === 'true' || useS3 === true,
42
+ deployCCUI,
43
+ );
44
+ },
45
+ );
46
+
47
+ program
48
+ .command('getVaultSecrets <vaultPath>')
49
+ .description('Get Secrets for Vault PATH')
50
+ .action(async (vaultPath) => {
51
+ const data = await getVaultSecrets(vaultPath);
52
+ console.log(JSON.stringify(data, 'null', 2));
53
+ });
54
+
55
+ program
56
+ .command('configureAlias <site> <env> <username> <password> <realm>')
57
+ .description('Configure Core Alias for the given site')
58
+ .action(async (site, env, username, password, realm) => {
59
+ await configureAlias(site, env, username, password, realm);
60
+ });
61
+
62
+ program
63
+ .command('exportConf <site> <env>')
64
+ .description('Export Auth0 configuration for the given site')
65
+ .action(async (site, env) => {
66
+ await exportConf(site, env);
67
+ });
68
+
69
+ program
70
+ .command('getAuth0Metadata <site> <env>')
71
+ .description('Get Auth0 metadata for the given site')
72
+ .action(async (site, env) => {
73
+ await getAuth0Metadata(site, env);
74
+ });
75
+
76
+ program.parse(process.argv);