sfdx-easy-sources 0.1.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.
Files changed (197) hide show
  1. package/README.md +158 -0
  2. package/lib/commands/easysources/allmeta/merge.d.ts +15 -0
  3. package/lib/commands/easysources/allmeta/merge.js +47 -0
  4. package/lib/commands/easysources/allmeta/merge.js.map +1 -0
  5. package/lib/commands/easysources/allmeta/split.d.ts +11 -0
  6. package/lib/commands/easysources/allmeta/split.js +42 -0
  7. package/lib/commands/easysources/allmeta/split.js.map +1 -0
  8. package/lib/commands/easysources/allmeta/upsert.d.ts +11 -0
  9. package/lib/commands/easysources/allmeta/upsert.js +42 -0
  10. package/lib/commands/easysources/allmeta/upsert.js.map +1 -0
  11. package/lib/commands/easysources/applications/merge.d.ts +15 -0
  12. package/lib/commands/easysources/applications/merge.js +48 -0
  13. package/lib/commands/easysources/applications/merge.js.map +1 -0
  14. package/lib/commands/easysources/applications/split.d.ts +12 -0
  15. package/lib/commands/easysources/applications/split.js +47 -0
  16. package/lib/commands/easysources/applications/split.js.map +1 -0
  17. package/lib/commands/easysources/applications/updatekey.d.ts +11 -0
  18. package/lib/commands/easysources/applications/updatekey.js +43 -0
  19. package/lib/commands/easysources/applications/updatekey.js.map +1 -0
  20. package/lib/commands/easysources/applications/upsert.d.ts +15 -0
  21. package/lib/commands/easysources/applications/upsert.js +48 -0
  22. package/lib/commands/easysources/applications/upsert.js.map +1 -0
  23. package/lib/commands/easysources/globalvaluesets/merge.d.ts +15 -0
  24. package/lib/commands/easysources/globalvaluesets/merge.js +48 -0
  25. package/lib/commands/easysources/globalvaluesets/merge.js.map +1 -0
  26. package/lib/commands/easysources/globalvaluesets/split.d.ts +12 -0
  27. package/lib/commands/easysources/globalvaluesets/split.js +47 -0
  28. package/lib/commands/easysources/globalvaluesets/split.js.map +1 -0
  29. package/lib/commands/easysources/globalvaluesets/updatekey.d.ts +11 -0
  30. package/lib/commands/easysources/globalvaluesets/updatekey.js +43 -0
  31. package/lib/commands/easysources/globalvaluesets/updatekey.js.map +1 -0
  32. package/lib/commands/easysources/globalvaluesets/upsert.d.ts +15 -0
  33. package/lib/commands/easysources/globalvaluesets/upsert.js +48 -0
  34. package/lib/commands/easysources/globalvaluesets/upsert.js.map +1 -0
  35. package/lib/commands/easysources/globalvaluesettranslations/merge.d.ts +15 -0
  36. package/lib/commands/easysources/globalvaluesettranslations/merge.js +48 -0
  37. package/lib/commands/easysources/globalvaluesettranslations/merge.js.map +1 -0
  38. package/lib/commands/easysources/globalvaluesettranslations/split.d.ts +12 -0
  39. package/lib/commands/easysources/globalvaluesettranslations/split.js +47 -0
  40. package/lib/commands/easysources/globalvaluesettranslations/split.js.map +1 -0
  41. package/lib/commands/easysources/globalvaluesettranslations/updatekey.d.ts +11 -0
  42. package/lib/commands/easysources/globalvaluesettranslations/updatekey.js +43 -0
  43. package/lib/commands/easysources/globalvaluesettranslations/updatekey.js.map +1 -0
  44. package/lib/commands/easysources/globalvaluesettranslations/upsert.d.ts +15 -0
  45. package/lib/commands/easysources/globalvaluesettranslations/upsert.js +48 -0
  46. package/lib/commands/easysources/globalvaluesettranslations/upsert.js.map +1 -0
  47. package/lib/commands/easysources/labels/merge.d.ts +14 -0
  48. package/lib/commands/easysources/labels/merge.js +44 -0
  49. package/lib/commands/easysources/labels/merge.js.map +1 -0
  50. package/lib/commands/easysources/labels/split.d.ts +11 -0
  51. package/lib/commands/easysources/labels/split.js +43 -0
  52. package/lib/commands/easysources/labels/split.js.map +1 -0
  53. package/lib/commands/easysources/labels/updatekey.d.ts +10 -0
  54. package/lib/commands/easysources/labels/updatekey.js +39 -0
  55. package/lib/commands/easysources/labels/updatekey.js.map +1 -0
  56. package/lib/commands/easysources/labels/upsert.d.ts +14 -0
  57. package/lib/commands/easysources/labels/upsert.js +44 -0
  58. package/lib/commands/easysources/labels/upsert.js.map +1 -0
  59. package/lib/commands/easysources/permissionsets/delete.d.ts +16 -0
  60. package/lib/commands/easysources/permissionsets/delete.js +104 -0
  61. package/lib/commands/easysources/permissionsets/delete.js.map +1 -0
  62. package/lib/commands/easysources/permissionsets/merge.d.ts +15 -0
  63. package/lib/commands/easysources/permissionsets/merge.js +48 -0
  64. package/lib/commands/easysources/permissionsets/merge.js.map +1 -0
  65. package/lib/commands/easysources/permissionsets/split.d.ts +12 -0
  66. package/lib/commands/easysources/permissionsets/split.js +47 -0
  67. package/lib/commands/easysources/permissionsets/split.js.map +1 -0
  68. package/lib/commands/easysources/permissionsets/updatekey.d.ts +11 -0
  69. package/lib/commands/easysources/permissionsets/updatekey.js +43 -0
  70. package/lib/commands/easysources/permissionsets/updatekey.js.map +1 -0
  71. package/lib/commands/easysources/permissionsets/upsert.d.ts +15 -0
  72. package/lib/commands/easysources/permissionsets/upsert.js +48 -0
  73. package/lib/commands/easysources/permissionsets/upsert.js.map +1 -0
  74. package/lib/commands/easysources/profiles/delete.d.ts +16 -0
  75. package/lib/commands/easysources/profiles/delete.js +104 -0
  76. package/lib/commands/easysources/profiles/delete.js.map +1 -0
  77. package/lib/commands/easysources/profiles/merge.d.ts +15 -0
  78. package/lib/commands/easysources/profiles/merge.js +48 -0
  79. package/lib/commands/easysources/profiles/merge.js.map +1 -0
  80. package/lib/commands/easysources/profiles/split.d.ts +12 -0
  81. package/lib/commands/easysources/profiles/split.js +47 -0
  82. package/lib/commands/easysources/profiles/split.js.map +1 -0
  83. package/lib/commands/easysources/profiles/updatekey.d.ts +11 -0
  84. package/lib/commands/easysources/profiles/updatekey.js +43 -0
  85. package/lib/commands/easysources/profiles/updatekey.js.map +1 -0
  86. package/lib/commands/easysources/profiles/upsert.d.ts +15 -0
  87. package/lib/commands/easysources/profiles/upsert.js +48 -0
  88. package/lib/commands/easysources/profiles/upsert.js.map +1 -0
  89. package/lib/commands/easysources/recordtypes/delete.d.ts +17 -0
  90. package/lib/commands/easysources/recordtypes/delete.js +129 -0
  91. package/lib/commands/easysources/recordtypes/delete.js.map +1 -0
  92. package/lib/commands/easysources/recordtypes/merge.d.ts +16 -0
  93. package/lib/commands/easysources/recordtypes/merge.js +110 -0
  94. package/lib/commands/easysources/recordtypes/merge.js.map +1 -0
  95. package/lib/commands/easysources/recordtypes/split.d.ts +13 -0
  96. package/lib/commands/easysources/recordtypes/split.js +125 -0
  97. package/lib/commands/easysources/recordtypes/split.js.map +1 -0
  98. package/lib/commands/easysources/recordtypes/updatekey.d.ts +12 -0
  99. package/lib/commands/easysources/recordtypes/updatekey.js +104 -0
  100. package/lib/commands/easysources/recordtypes/updatekey.js.map +1 -0
  101. package/lib/commands/easysources/recordtypes/upsert.d.ts +16 -0
  102. package/lib/commands/easysources/recordtypes/upsert.js +144 -0
  103. package/lib/commands/easysources/recordtypes/upsert.js.map +1 -0
  104. package/lib/commands/hello/org.d.ts +17 -0
  105. package/lib/commands/hello/org.js +72 -0
  106. package/lib/commands/hello/org.js.map +1 -0
  107. package/lib/index.d.ts +2 -0
  108. package/lib/index.js +4 -0
  109. package/lib/index.js.map +1 -0
  110. package/lib/utils/commands/keyupdater.d.ts +3 -0
  111. package/lib/utils/commands/keyupdater.js +55 -0
  112. package/lib/utils/commands/keyupdater.js.map +1 -0
  113. package/lib/utils/commands/merger.d.ts +3 -0
  114. package/lib/utils/commands/merger.js +53 -0
  115. package/lib/utils/commands/merger.js.map +1 -0
  116. package/lib/utils/commands/splitter.d.ts +3 -0
  117. package/lib/utils/commands/splitter.js +73 -0
  118. package/lib/utils/commands/splitter.js.map +1 -0
  119. package/lib/utils/commands/upserter.d.ts +3 -0
  120. package/lib/utils/commands/upserter.js +85 -0
  121. package/lib/utils/commands/upserter.js.map +1 -0
  122. package/lib/utils/constants/constants.d.ts +6 -0
  123. package/lib/utils/constants/constants.js +10 -0
  124. package/lib/utils/constants/constants.js.map +1 -0
  125. package/lib/utils/constants/constants_applications.d.ts +13 -0
  126. package/lib/utils/constants/constants_applications.js +15 -0
  127. package/lib/utils/constants/constants_applications.js.map +1 -0
  128. package/lib/utils/constants/constants_globalvaluesets.d.ts +13 -0
  129. package/lib/utils/constants/constants_globalvaluesets.js +15 -0
  130. package/lib/utils/constants/constants_globalvaluesets.js.map +1 -0
  131. package/lib/utils/constants/constants_globalvaluesettranslations.d.ts +13 -0
  132. package/lib/utils/constants/constants_globalvaluesettranslations.js +15 -0
  133. package/lib/utils/constants/constants_globalvaluesettranslations.js.map +1 -0
  134. package/lib/utils/constants/constants_labels.d.ts +13 -0
  135. package/lib/utils/constants/constants_labels.js +15 -0
  136. package/lib/utils/constants/constants_labels.js.map +1 -0
  137. package/lib/utils/constants/constants_permissionsets.d.ts +83 -0
  138. package/lib/utils/constants/constants_permissionsets.js +55 -0
  139. package/lib/utils/constants/constants_permissionsets.js.map +1 -0
  140. package/lib/utils/constants/constants_profiles.d.ts +83 -0
  141. package/lib/utils/constants/constants_profiles.js +68 -0
  142. package/lib/utils/constants/constants_profiles.js.map +1 -0
  143. package/lib/utils/constants/constants_recordtypes.d.ts +13 -0
  144. package/lib/utils/constants/constants_recordtypes.js +15 -0
  145. package/lib/utils/constants/constants_recordtypes.js.map +1 -0
  146. package/lib/utils/filesUtils.d.ts +9 -0
  147. package/lib/utils/filesUtils.js +75 -0
  148. package/lib/utils/filesUtils.js.map +1 -0
  149. package/lib/utils/performance.d.ts +9 -0
  150. package/lib/utils/performance.js +22 -0
  151. package/lib/utils/performance.js.map +1 -0
  152. package/lib/utils/utils.d.ts +5 -0
  153. package/lib/utils/utils.js +84 -0
  154. package/lib/utils/utils.js.map +1 -0
  155. package/lib/utils/utils_recordtypes.d.ts +2 -0
  156. package/lib/utils/utils_recordtypes.js +37 -0
  157. package/lib/utils/utils_recordtypes.js.map +1 -0
  158. package/lib/utils/xmlFormatter.d.ts +4 -0
  159. package/lib/utils/xmlFormatter.js +18 -0
  160. package/lib/utils/xmlFormatter.js.map +1 -0
  161. package/messages/all_merge.json +11 -0
  162. package/messages/all_split.json +12 -0
  163. package/messages/all_upsert.json +11 -0
  164. package/messages/applications_merge.json +12 -0
  165. package/messages/applications_split.json +15 -0
  166. package/messages/applications_updatekey.json +11 -0
  167. package/messages/applications_upsert.json +12 -0
  168. package/messages/globalvaluesets_merge.json +12 -0
  169. package/messages/globalvaluesets_split.json +15 -0
  170. package/messages/globalvaluesets_updatekey.json +11 -0
  171. package/messages/globalvaluesets_upsert.json +12 -0
  172. package/messages/globalvaluesettranslations_merge.json +12 -0
  173. package/messages/globalvaluesettranslations_split.json +15 -0
  174. package/messages/globalvaluesettranslations_updatekey.json +11 -0
  175. package/messages/globalvaluesettranslations_upsert.json +12 -0
  176. package/messages/labels_merge.json +11 -0
  177. package/messages/labels_split.json +12 -0
  178. package/messages/labels_updatekey.json +10 -0
  179. package/messages/labels_upsert.json +11 -0
  180. package/messages/org.json +10 -0
  181. package/messages/permissionsets_delete.json +23 -0
  182. package/messages/permissionsets_merge.json +12 -0
  183. package/messages/permissionsets_split.json +15 -0
  184. package/messages/permissionsets_updatekey.json +11 -0
  185. package/messages/permissionsets_upsert.json +12 -0
  186. package/messages/profiles_delete.json +23 -0
  187. package/messages/profiles_merge.json +12 -0
  188. package/messages/profiles_split.json +15 -0
  189. package/messages/profiles_updatekey.json +11 -0
  190. package/messages/profiles_upsert.json +12 -0
  191. package/messages/recordtypes_delete.json +16 -0
  192. package/messages/recordtypes_merge.json +15 -0
  193. package/messages/recordtypes_split.json +16 -0
  194. package/messages/recordtypes_updatekey.json +13 -0
  195. package/messages/recordtypes_upsert.json +15 -0
  196. package/oclif.manifest.json +1 -0
  197. package/package.json +76 -0
package/README.md ADDED
@@ -0,0 +1,158 @@
1
+ sfdx-easy-sources
2
+ =================
3
+
4
+ # [BETA]
5
+
6
+
7
+ [![Version](https://img.shields.io/npm/v/sfdx-easy-sources.svg)](https://npmjs.org/package/sfdx-easy-sources)
8
+ [![CircleCI](https://circleci.com/gh/raffo93p/sfdx-easy-sources/tree/master.svg?style=shield)](https://circleci.com/gh/raffo93p/sfdx-easy-sources/tree/master)
9
+ [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/raffo93p/sfdx-easy-sources?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/sfdx-easy-sources/branch/master)
10
+ [![Greenkeeper](https://badges.greenkeeper.io/raffo93p/sfdx-easy-sources.svg)](https://greenkeeper.io/)
11
+ [![Known Vulnerabilities](https://snyk.io/test/github/raffo93p/sfdx-easy-sources/badge.svg)](https://snyk.io/test/github/raffo93p/sfdx-easy-sources)
12
+ [![Downloads/week](https://img.shields.io/npm/dw/sfdx-easy-sources.svg)](https://npmjs.org/package/sfdx-easy-sources)
13
+ [![License](https://img.shields.io/npm/l/sfdx-easy-sources.svg)](https://github.com/raffo93p/sfdx-easy-sources/blob/master/package.json)
14
+
15
+ # Note: There might be bugs or errors since this plugin is still in BETA version
16
+
17
+
18
+ This unofficial plugin provides tools to simplify Salesforce sources, by splitting files into smaller ones and in csv format.
19
+
20
+
21
+ ## Supported metadata types
22
+
23
+ - [Profiles]
24
+ - [RecordTypes]
25
+ - [Labels]
26
+ - [GlobalValueSets]
27
+ - [GlobalValueSetTranslations]
28
+ - [Applications]
29
+
30
+
31
+ ```sh-session
32
+ $ npm install -g sfdx-easy-sources
33
+ $ sfdx COMMAND
34
+ running command...
35
+ $ sfdx (--version)
36
+ sfdx-easy-sources/0.0.1 darwin-arm64 node-v18.11.0
37
+ $ sfdx --help [COMMAND]
38
+ USAGE
39
+ $ sfdx COMMAND
40
+ ...
41
+ ```
42
+
43
+
44
+
45
+ This sfdx plugin is intended to simplify the life of salesforce developers, who could have hard time trying to manage some kind of sources that Salesforce has.
46
+ The main idea behind the plugin is to represent some long files as csv, in order both to have a more efficient way to manage long files and to have a more git-friendly file format.
47
+ In addition, splitting into csv files doesn't generate a huge number of files.
48
+
49
+
50
+ Based on the source type, this plugin provides the following tools:
51
+ - Split: Splits the resources into various csv files, and eventually an xml containing all the tags that weren't split
52
+ - Merge: Merges back all the resources previously split
53
+ - Upsert: It's like the split, but goes on upsert.
54
+ - Updatekey: Maybe sometimes a developer changes something on the csv file, this command simply updates the key for that record
55
+ - Delete: Bulk deletes a single permission from all the resources of the same type (only applies to Profiles, PermissionSets and Record Types)
56
+
57
+ ## Scenarios
58
+ A prerequisite on the usage of this plugin is that the release manager or the architect should have downloaded all the source code from the org.
59
+
60
+ ### Split
61
+
62
+ At the beginning of the usage of this plugin, the release manager splits the metadata he thinks generate more problems to developers when they have to modify them or deploy from one org to another.
63
+ Supported metadata types are listed above.
64
+ The split command creates a folder at the same level of the file that it is splitting, and inside the folder it creates various csv files and a part.xml file.
65
+ Csv files are generated starting from the tags that are mapped inside the code. In the part.xml file all other tags can be found.
66
+
67
+ ```sh-session
68
+
69
+ For help
70
+ $ sfdx easysources:profiles:split -h
71
+ $ sfdx easysources:recordtypes:split -h
72
+ $ sfdx easysources:labels:split -h
73
+ $ sfdx easysources:permissionsets:split -h
74
+ $ sfdx easysources:globalvaluesettranslations:split -h
75
+ $ sfdx easysources:globalvaluesets:split -h
76
+ $ sfdx easysources:applications:split -h
77
+
78
+ $ sfdx easysources:allmeta:split -h
79
+
80
+ ```
81
+
82
+ ### Upsert
83
+
84
+ Suppose the developer cretes a new object, he creates some fields, he assigns the fields, the layouts and the object permissions to the various profiles.
85
+ To update the profiles on the repository, he can:
86
+ 1. Make the changes on Salesforce org
87
+ 2. Create a package xml with the object, layout, fields and all profiles
88
+ 3. Retrieve the package. All profiles will now contain only the tags related to the new object, layout and fields
89
+ 4. *Execute the upsert command for profiles. The upsert command will insert the new tags into the csv*
90
+ 5. Then he can merge back to have the profiles to be deployed elsewhere
91
+
92
+ ```sh-session
93
+
94
+ For help
95
+ $ sfdx easysources:profiles:upsert -h
96
+ $ sfdx easysources:recordtypes:upsert -h
97
+ $ sfdx easysources:labels:upsert -h
98
+ $ sfdx easysources:permissionsets:upsert -h
99
+ $ sfdx easysources:globalvaluesettranslations:upsert -h
100
+ $ sfdx easysources:globalvaluesets:upsert -h
101
+ $ sfdx easysources:applications:upsert -h
102
+
103
+ $ sfdx easysources:allmeta:upsert -h
104
+
105
+ ```
106
+ **NOTE: the upsert doesn't delete any unused reference. If the user deletes a field, he should run the delete command**
107
+
108
+
109
+ ### UpdateKey
110
+
111
+ Suppose the developer makes some modification directly on the csv. WIth the updatekey command, he can update the tagid column if needed.
112
+
113
+ ```sh-session
114
+
115
+ For help
116
+ $ sfdx easysources:profiles:updatekey -h
117
+ $ sfdx easysources:recordtypes:updatekey -h
118
+ $ sfdx easysources:labels:updatekey -h
119
+ $ sfdx easysources:permissionsets:updatekey -h
120
+ $ sfdx easysources:globalvaluesettranslations:updatekey -h
121
+ $ sfdx easysources:globalvaluesets:updatekey -h
122
+ $ sfdx easysources:applications:updatekey -h
123
+
124
+ ```
125
+
126
+ ### Merge
127
+
128
+ When the user needs to deploy the code, he needs to merge back the csv files to restore and update the original xml file.
129
+
130
+ ```sh-session
131
+
132
+ For help
133
+ $ sfdx easysources:profiles:merge -h
134
+ $ sfdx easysources:recordtypes:merge -h
135
+ $ sfdx easysources:labels:merge -h
136
+ $ sfdx easysources:permissionsets:merge -h
137
+ $ sfdx easysources:globalvaluesettranslations:merge -h
138
+ $ sfdx easysources:globalvaluesets:merge -h
139
+ $ sfdx easysources:applications:merge -h
140
+
141
+ $ sfdx easysources:allmeta:merge -h
142
+
143
+ ```
144
+
145
+ ### Delete
146
+ **Note: only applies to Profiles, PermissionSets and RecordTypes**
147
+
148
+ Suppose the developer deletes a field on the org, he needs to delete all the references for that field for all Profiles, PermissionSets and RecordTypes.
149
+ This command is intended to delete references, and it has flags to specify the name of the field. Run with -h flag to get a better description of the possible flags for each metadata type.
150
+
151
+ ```sh-session
152
+
153
+ For help
154
+ $ sfdx easysources:profiles:delete -h
155
+ $ sfdx easysources:recordtypes:delete -h
156
+ $ sfdx easysources:permissionsets:delete -h
157
+
158
+ ```
@@ -0,0 +1,15 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Merge extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ name: string;
8
+ }[];
9
+ protected static flagsConfig: {
10
+ dir: flags.Discriminated<flags.String>;
11
+ input: flags.Discriminated<flags.String>;
12
+ output: flags.Discriminated<flags.String>;
13
+ };
14
+ run(): Promise<AnyJson>;
15
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_1 = require("../../../utils/constants/constants");
14
+ const utils_1 = require("../../../utils/utils");
15
+ // Initialize Messages with the current plugin directory
16
+ core_1.Messages.importMessagesDirectory(__dirname);
17
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
18
+ // or any library that is using the messages framework can also be loaded this way.
19
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_merge');
20
+ class Merge extends command_1.SfdxCommand {
21
+ async run() {
22
+ performance_1.default.getInstance().start();
23
+ await (0, utils_1.bulkExecuteCommands)(this.flags, 'merge');
24
+ performance_1.default.getInstance().end();
25
+ return 'OK';
26
+ }
27
+ }
28
+ exports.default = Merge;
29
+ Merge.description = messages.getMessage('commandDescription');
30
+ Merge.examples = messages.getMessage('examples').split(os.EOL);
31
+ Merge.args = [{ name: 'file' }];
32
+ Merge.flagsConfig = {
33
+ // flag with a value (-n, --name=VALUE)
34
+ dir: command_1.flags.string({
35
+ char: 'd',
36
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
37
+ }),
38
+ input: command_1.flags.string({
39
+ char: 'i',
40
+ description: messages.getMessage('inputFlagDescription'),
41
+ }),
42
+ output: command_1.flags.string({
43
+ char: 'o',
44
+ description: messages.getMessage('outputFlagDescription', [constants_1.DEFAULT_PATH]),
45
+ })
46
+ };
47
+ //# sourceMappingURL=merge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/commands/easysources/allmeta/merge.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,kEAAkE;AAClE,gDAA2D;AAI3D,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAElF,MAAqB,KAAM,SAAQ,qBAAW;IAuBnC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,MAAM,IAAA,2BAAmB,EAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE/C,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,IAAI,CAAC;IAChB,CAAC;;AA/BL,wBAgCC;AA/BiB,iBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,cAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEzD,UAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,iBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,wBAAY,CAAC,CAAC;KAC5E,CAAC;CACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Split extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ protected static flagsConfig: {
7
+ dir: flags.Discriminated<flags.String>;
8
+ output: flags.Discriminated<flags.String>;
9
+ };
10
+ run(): Promise<AnyJson>;
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_1 = require("../../../utils/constants/constants");
14
+ const utils_1 = require("../../../utils/utils");
15
+ // Initialize Messages with the current plugin directory
16
+ core_1.Messages.importMessagesDirectory(__dirname);
17
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
18
+ // or any library that is using the messages framework can also be loaded this way.
19
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_split');
20
+ class Split extends command_1.SfdxCommand {
21
+ async run() {
22
+ performance_1.default.getInstance().start();
23
+ await (0, utils_1.bulkExecuteCommands)(this.flags, 'split');
24
+ performance_1.default.getInstance().end();
25
+ return 'OK';
26
+ }
27
+ }
28
+ exports.default = Split;
29
+ Split.description = messages.getMessage('commandDescription');
30
+ Split.examples = messages.getMessage('examples').split(os.EOL);
31
+ Split.flagsConfig = {
32
+ // flag with a value (-n, --name=VALUE)
33
+ dir: command_1.flags.string({
34
+ char: 'd',
35
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
36
+ }),
37
+ output: command_1.flags.string({
38
+ char: 'o',
39
+ description: messages.getMessage('outputFlagDescription', [constants_1.DEFAULT_PATH]),
40
+ }),
41
+ };
42
+ //# sourceMappingURL=split.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split.js","sourceRoot":"","sources":["../../../../src/commands/easysources/allmeta/split.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,kEAAkE;AAClE,gDAA2D;AAI3D,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAElF,MAAqB,KAAM,SAAQ,qBAAW;IAmBnC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,MAAM,IAAA,2BAAmB,EAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE/C,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,IAAI,CAAC;IAChB,CAAC;;AA3BL,wBA4BC;AA3BiB,iBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,cAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAGtD,iBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,wBAAY,CAAC,CAAC;KAC5E,CAAC;CACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Split extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ protected static flagsConfig: {
7
+ dir: flags.Discriminated<flags.String>;
8
+ output: flags.Discriminated<flags.String>;
9
+ };
10
+ run(): Promise<AnyJson>;
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_1 = require("../../../utils/constants/constants");
14
+ const utils_1 = require("../../../utils/utils");
15
+ // Initialize Messages with the current plugin directory
16
+ core_1.Messages.importMessagesDirectory(__dirname);
17
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
18
+ // or any library that is using the messages framework can also be loaded this way.
19
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_split');
20
+ class Split extends command_1.SfdxCommand {
21
+ async run() {
22
+ performance_1.default.getInstance().start();
23
+ await (0, utils_1.bulkExecuteCommands)(this.flags, 'upsert');
24
+ performance_1.default.getInstance().end();
25
+ return 'OK';
26
+ }
27
+ }
28
+ exports.default = Split;
29
+ Split.description = messages.getMessage('commandDescription');
30
+ Split.examples = messages.getMessage('examples').split(os.EOL);
31
+ Split.flagsConfig = {
32
+ // flag with a value (-n, --name=VALUE)
33
+ dir: command_1.flags.string({
34
+ char: 'd',
35
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
36
+ }),
37
+ output: command_1.flags.string({
38
+ char: 'o',
39
+ description: messages.getMessage('outputFlagDescription', [constants_1.DEFAULT_PATH]),
40
+ }),
41
+ };
42
+ //# sourceMappingURL=upsert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsert.js","sourceRoot":"","sources":["../../../../src/commands/easysources/allmeta/upsert.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,kEAAkE;AAClE,gDAA2D;AAI3D,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAElF,MAAqB,KAAM,SAAQ,qBAAW;IAmBnC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,MAAM,IAAA,2BAAmB,EAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAEhD,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,IAAI,CAAC;IAChB,CAAC;;AA3BL,wBA4BC;AA3BiB,iBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,cAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAGtD,iBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,wBAAY,CAAC,CAAC;KAC5E,CAAC;CACL,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Merge extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ name: string;
8
+ }[];
9
+ protected static flagsConfig: {
10
+ dir: flags.Discriminated<flags.String>;
11
+ input: flags.Discriminated<flags.String>;
12
+ output: flags.Discriminated<flags.String>;
13
+ };
14
+ run(): Promise<AnyJson>;
15
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_applications_1 = require("../../../utils/constants/constants_applications");
14
+ const merger_1 = require("../../../utils/commands/merger");
15
+ const constants_1 = require("../../../utils/constants/constants");
16
+ // Initialize Messages with the current plugin directory
17
+ core_1.Messages.importMessagesDirectory(__dirname);
18
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
19
+ // or any library that is using the messages framework can also be loaded this way.
20
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_merge');
21
+ class Merge extends command_1.SfdxCommand {
22
+ async run() {
23
+ performance_1.default.getInstance().start();
24
+ var result = await (0, merger_1.merge)(this.flags, constants_applications_1.APPLICATIONS_SUBPATH, constants_applications_1.APPLICATIONS_EXTENSION, constants_applications_1.APPLICATIONS_ROOT_TAG, constants_applications_1.APPLICATION_ITEMS);
25
+ performance_1.default.getInstance().end();
26
+ return result;
27
+ }
28
+ }
29
+ exports.default = Merge;
30
+ Merge.description = messages.getMessage('commandDescription');
31
+ Merge.examples = messages.getMessage('examples').split(os.EOL);
32
+ Merge.args = [{ name: 'file' }];
33
+ Merge.flagsConfig = {
34
+ // flag with a value (-n, --name=VALUE)
35
+ dir: command_1.flags.string({
36
+ char: 'd',
37
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
38
+ }),
39
+ input: command_1.flags.string({
40
+ char: 'i',
41
+ description: messages.getMessage('inputFlagDescription'),
42
+ }),
43
+ output: command_1.flags.string({
44
+ char: 'o',
45
+ description: messages.getMessage('outputFlagDescription', [constants_1.DEFAULT_PATH]),
46
+ })
47
+ };
48
+ //# sourceMappingURL=merge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/commands/easysources/applications/merge.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,4FAAyJ;AACzJ,2DAAuD;AACvD,kEAAkE;AAIlE,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAElF,MAAqB,KAAM,SAAQ,qBAAW;IAuBnC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,IAAI,MAAM,GAAG,MAAM,IAAA,cAAK,EAAC,IAAI,CAAC,KAAK,EAAE,6CAAoB,EAAE,+CAAsB,EAAE,8CAAqB,EAAE,0CAAiB,CAAC,CAAC;QAE7H,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,MAAM,CAAC;IAClB,CAAC;;AA/BL,wBAgCC;AA/BiB,iBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,cAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEzD,UAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,iBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,wBAAY,CAAC,CAAC;KAC5E,CAAC;CACL,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Split extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ protected static flagsConfig: {
7
+ dir: flags.Discriminated<flags.String>;
8
+ input: flags.Discriminated<flags.String>;
9
+ output: flags.Discriminated<flags.String>;
10
+ };
11
+ run(): Promise<AnyJson>;
12
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_applications_1 = require("../../../utils/constants/constants_applications");
14
+ const splitter_1 = require("../../../utils/commands/splitter");
15
+ const constants_1 = require("../../../utils/constants/constants");
16
+ // Initialize Messages with the current plugin directory
17
+ core_1.Messages.importMessagesDirectory(__dirname);
18
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
19
+ // or any library that is using the messages framework can also be loaded this way.
20
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_split');
21
+ class Split extends command_1.SfdxCommand {
22
+ async run() {
23
+ performance_1.default.getInstance().start();
24
+ var result = await (0, splitter_1.split)(this.flags, constants_applications_1.APPLICATIONS_SUBPATH, constants_applications_1.APPLICATIONS_EXTENSION, constants_applications_1.APPLICATIONS_ROOT_TAG, constants_applications_1.APPLICATION_ITEMS);
25
+ performance_1.default.getInstance().end();
26
+ return result;
27
+ }
28
+ }
29
+ exports.default = Split;
30
+ Split.description = messages.getMessage('commandDescription');
31
+ Split.examples = messages.getMessage('examples').split(os.EOL);
32
+ Split.flagsConfig = {
33
+ // flag with a value (-n, --name=VALUE)
34
+ dir: command_1.flags.string({
35
+ char: 'd',
36
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
37
+ }),
38
+ input: command_1.flags.string({
39
+ char: 'i',
40
+ description: messages.getMessage('inputFlagDescription'),
41
+ }),
42
+ output: command_1.flags.string({
43
+ char: 'o',
44
+ description: messages.getMessage('outputFlagDescription', [constants_1.DEFAULT_PATH]),
45
+ }),
46
+ };
47
+ //# sourceMappingURL=split.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split.js","sourceRoot":"","sources":["../../../../src/commands/easysources/applications/split.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,4FAAyJ;AACzJ,+DAAyD;AACzD,kEAAkE;AAGlE,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;AAElF,MAAqB,KAAM,SAAQ,qBAAW;IAuBnC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,IAAI,MAAM,GAAG,MAAM,IAAA,gBAAK,EAAC,IAAI,CAAC,KAAK,EAAE,6CAAoB,EAAE,+CAAsB,EAAE,8CAAqB,EAAE,0CAAiB,CAAC,CAAC;QAE7H,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,MAAM,CAAC;IAClB,CAAC;;AA/BL,wBAgCC;AA/BiB,iBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,cAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAGtD,iBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,wBAAY,CAAC,CAAC;KAC5E,CAAC;CACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class UpdateKey extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ protected static flagsConfig: {
7
+ dir: flags.Discriminated<flags.String>;
8
+ input: flags.Discriminated<flags.String>;
9
+ };
10
+ run(): Promise<AnyJson>;
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_applications_1 = require("../../../utils/constants/constants_applications");
14
+ const keyupdater_1 = require("../../../utils/commands/keyupdater");
15
+ const constants_1 = require("../../../utils/constants/constants");
16
+ // Initialize Messages with the current plugin directory
17
+ core_1.Messages.importMessagesDirectory(__dirname);
18
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
19
+ // or any library that is using the messages framework can also be loaded this way.
20
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_updatekey');
21
+ class UpdateKey extends command_1.SfdxCommand {
22
+ async run() {
23
+ performance_1.default.getInstance().start();
24
+ var result = await (0, keyupdater_1.updatekey)(this.flags, constants_applications_1.APPLICATIONS_SUBPATH, constants_applications_1.APPLICATION_ITEMS);
25
+ performance_1.default.getInstance().end();
26
+ return result;
27
+ }
28
+ }
29
+ exports.default = UpdateKey;
30
+ UpdateKey.description = messages.getMessage('commandDescription');
31
+ UpdateKey.examples = messages.getMessage('examples').split(os.EOL);
32
+ UpdateKey.flagsConfig = {
33
+ // flag with a value (-n, --name=VALUE)
34
+ dir: command_1.flags.string({
35
+ char: 'd',
36
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
37
+ }),
38
+ input: command_1.flags.string({
39
+ char: 'i',
40
+ description: messages.getMessage('inputFlagDescription'),
41
+ })
42
+ };
43
+ //# sourceMappingURL=updatekey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatekey.js","sourceRoot":"","sources":["../../../../src/commands/easysources/applications/updatekey.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,4FAA0G;AAC1G,mEAA+D;AAC/D,kEAAkE;AAElE,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC;AAEtF,MAAqB,SAAU,SAAQ,qBAAW;IAmBvC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,IAAI,MAAM,GAAG,MAAM,IAAA,sBAAS,EAAC,IAAI,CAAC,KAAK,EAAE,6CAAoB,EAAE,0CAAiB,CAAC,CAAC;QAElF,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,MAAM,CAAC;IAClB,CAAC;;AA3BL,4BA4BC;AA3BiB,qBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,kBAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAGtD,qBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC3D,CAAC;CACL,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Upsert extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ name: string;
8
+ }[];
9
+ protected static flagsConfig: {
10
+ dir: flags.Discriminated<flags.String>;
11
+ input: flags.Discriminated<flags.String>;
12
+ output: flags.Discriminated<flags.String>;
13
+ };
14
+ run(): Promise<AnyJson>;
15
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2020, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const os = require("os");
10
+ const command_1 = require("@salesforce/command");
11
+ const core_1 = require("@salesforce/core");
12
+ const performance_1 = require("../../../utils/performance");
13
+ const constants_applications_1 = require("../../../utils/constants/constants_applications");
14
+ const upserter_1 = require("../../../utils/commands/upserter");
15
+ const constants_1 = require("../../../utils/constants/constants");
16
+ // Initialize Messages with the current plugin directory
17
+ core_1.Messages.importMessagesDirectory(__dirname);
18
+ // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
19
+ // or any library that is using the messages framework can also be loaded this way.
20
+ const messages = core_1.Messages.loadMessages('sfdx-easy-sources', 'applications_upsert');
21
+ class Upsert extends command_1.SfdxCommand {
22
+ async run() {
23
+ performance_1.default.getInstance().start();
24
+ var result = await (0, upserter_1.upsert)(this.flags, constants_applications_1.APPLICATIONS_SUBPATH, constants_applications_1.APPLICATIONS_EXTENSION, constants_applications_1.APPLICATIONS_ROOT_TAG, constants_applications_1.APPLICATION_ITEMS);
25
+ performance_1.default.getInstance().end();
26
+ return result;
27
+ }
28
+ }
29
+ exports.default = Upsert;
30
+ Upsert.description = messages.getMessage('commandDescription');
31
+ Upsert.examples = messages.getMessage('examples').split(os.EOL);
32
+ Upsert.args = [{ name: 'file' }];
33
+ Upsert.flagsConfig = {
34
+ // flag with a value (-n, --name=VALUE)
35
+ dir: command_1.flags.string({
36
+ char: 'd',
37
+ description: messages.getMessage('dirFlagDescription', [constants_1.DEFAULT_PATH]),
38
+ }),
39
+ input: command_1.flags.string({
40
+ char: 'i',
41
+ description: messages.getMessage('inputFlagDescription'),
42
+ }),
43
+ output: command_1.flags.string({
44
+ char: 'o',
45
+ description: messages.getMessage('outputFlagDescription', [constants_1.DEFAULT_PATH]),
46
+ })
47
+ };
48
+ //# sourceMappingURL=upsert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsert.js","sourceRoot":"","sources":["../../../../src/commands/easysources/applications/upsert.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAyD;AACzD,2CAA4C;AAE5C,4DAAqD;AACrD,4FAAyJ;AACzJ,+DAA0D;AAC1D,kEAAkE;AAElE,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;AAEnF,MAAqB,MAAO,SAAQ,qBAAW;IAyBpC,KAAK,CAAC,GAAG;QACZ,qBAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAElC,IAAI,MAAM,GAAG,MAAM,IAAA,iBAAM,EAAC,IAAI,CAAC,KAAK,EAAE,6CAAoB,EAAE,+CAAsB,EAAE,8CAAqB,EAAE,0CAAiB,CAAC,CAAC;QAE9H,qBAAW,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC;QAEhC,OAAO,MAAM,CAAC;IAClB,CAAC;;AAjCL,yBAkCC;AAjCiB,kBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,eAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAGzD,WAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,kBAAW,GAAG;IAC3B,uCAAuC;IACvC,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,wBAAY,CAAC,CAAC;KACzE,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,wBAAY,CAAC,CAAC;KAC5E,CAAC;CACL,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class Merge extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ name: string;
8
+ }[];
9
+ protected static flagsConfig: {
10
+ dir: flags.Discriminated<flags.String>;
11
+ input: flags.Discriminated<flags.String>;
12
+ output: flags.Discriminated<flags.String>;
13
+ };
14
+ run(): Promise<AnyJson>;
15
+ }