@jayree/sfdx-plugin-manifest 2.9.1 → 3.0.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [3.0.1](https://github.com/jayree/sfdx-plugin-manifest/compare/v3.0.0...v3.0.1) (2023-03-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** bump @oclif/core from 2.4.0 to 2.6.2 ([#606](https://github.com/jayree/sfdx-plugin-manifest/issues/606)) ([9d5cd36](https://github.com/jayree/sfdx-plugin-manifest/commit/9d5cd3605fa0cd702a1fa2ef46d2069813a370c0))
7
+ * **deps:** bump @salesforce/kit from 1.9.0 to 1.9.2 ([#609](https://github.com/jayree/sfdx-plugin-manifest/issues/609)) ([2872e65](https://github.com/jayree/sfdx-plugin-manifest/commit/2872e65fb21053dc9b93c5466249fb28b9d33f4a))
8
+ * **deps:** bump @salesforce/source-deploy-retrieve from 7.11.0 to 7.11.3 ([#607](https://github.com/jayree/sfdx-plugin-manifest/issues/607)) ([8dbf910](https://github.com/jayree/sfdx-plugin-manifest/commit/8dbf91005c6a45ad9562cf05e56b4505db765983))
9
+
10
+ # [3.0.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.9.1...v3.0.0) (2023-03-03)
11
+
12
+
13
+ ### Features
14
+
15
+ * **manifest:git:diff:** make :beta:git:diff the default command. The old command is available as :legacy:git:diff ([2f4b9dc](https://github.com/jayree/sfdx-plugin-manifest/commit/2f4b9dc80dd3a4e6241c44907a88c5f00bcade63))
16
+
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * **manifest:git:diff:** This change makes :beta:git:diff the default command.
21
+
1
22
  ## [2.9.1](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.9.0...v2.9.1) (2023-03-03)
2
23
 
3
24
 
package/README.md CHANGED
@@ -17,89 +17,10 @@ sfdx plugins:install @jayree/sfdx-plugin-manifest
17
17
  ## Commands
18
18
 
19
19
  <!-- commands -->
20
- * [`sfdx jayree:manifest:beta:git:diff`](#sfdx-jayreemanifestbetagitdiff)
21
20
  * [`sfdx jayree:manifest:cleanup`](#sfdx-jayreemanifestcleanup)
22
21
  * [`sfdx jayree:manifest:generate`](#sfdx-jayreemanifestgenerate)
23
22
  * [`sfdx jayree:manifest:git:diff`](#sfdx-jayreemanifestgitdiff)
24
-
25
- ### `sfdx jayree:manifest:beta:git:diff`
26
-
27
- Create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or delete based on changes in your git history.
28
-
29
- ```
30
- USAGE
31
- $ sfdx jayree:manifest:beta:git:diff REF1 [REF2] [--json] [--api-version <value>] [-d <value>] [--output-dir <value>]
32
- [--destructive-changes-only]
33
-
34
- ARGUMENTS
35
- REF1 Base commit or branch.
36
- REF2 Commit or branch to compare to the base commit.
37
-
38
- FLAGS
39
- -d, --source-dir=<value>... Path to the local source files to include in the manifest.
40
- --api-version=<value> Override the api version used for api requests made by this command
41
- --destructive-changes-only Create a destructiveChanges manifest only.
42
- --output-dir=<value> Directory to save the created manifest files.
43
-
44
- GLOBAL FLAGS
45
- --json Format output as json.
46
-
47
- DESCRIPTION
48
- Create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or
49
- delete based on changes in your git history.
50
-
51
- Use this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two
52
- git refs.
53
-
54
- You can use all ways to spell <commit> which are valid for 'git diff' (See https://git-scm.com/docs/git-diff).
55
-
56
- EXAMPLES
57
- Uses the changes between two arbitrary <commit>.
58
-
59
- $ sfdx jayree:manifest:beta:git:diff <commit> <commit>
60
- $ sfdx jayree:manifest:beta:git:diff <commit>..<commit>
61
-
62
- Uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both
63
- <commit>.
64
-
65
- $ sfdx jayree:manifest:beta:git:diff <commit>...<commit>
66
-
67
- Uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1).
68
-
69
- $ sfdx jayree:manifest:beta:git:diff branchA..branchB
70
-
71
- Uses the diff of what is unique in branchB (REF2).
72
-
73
- $ sfdx jayree:manifest:beta:git:diff branchA...branchB
74
-
75
- Specify the flags before or after the REF args
76
-
77
- $ sfdx jayree:manifest:beta:git:diff --output-dir package <commit> <commit>
78
- $ sfdx jayree:manifest:beta:git:diff <commit> <commit> --output-dir package
79
-
80
- If you specify the 'source-dir' flag before the REF args, use '--' to separate the args from the 'source-dir'
81
- values.
82
-
83
- $ sfdx jayree:manifest:beta:git:diff --source-dir force-app -- <commit> <commit>
84
-
85
- FLAG DESCRIPTIONS
86
- -d, --source-dir=<value>... Path to the local source files to include in the manifest.
87
-
88
- The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
89
- (in which case the operation is applied to all metadata types in the directory and its subdirectories).
90
-
91
- You can specify this flag more than once.
92
-
93
- --destructive-changes-only Create a destructiveChanges manifest only.
94
-
95
- Use this flag to create a 'destructiveChanges.xml' and a blank 'package.xml'.
96
-
97
- --output-dir=<value> Directory to save the created manifest files.
98
-
99
- The location can be an absolute path or relative to the current working directory.
100
- ```
101
-
102
- _See code: [src/commands/jayree/manifest/beta/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/beta/git/diff.ts)_
23
+ * [`sfdx jayree:manifest:legacy:git:diff`](#sfdx-jayreemanifestlegacygitdiff)
103
24
 
104
25
  ### `sfdx jayree:manifest:cleanup`
105
26
 
@@ -127,7 +48,7 @@ EXAMPLES
127
48
  $ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
128
49
  ```
129
50
 
130
- _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/cleanup.ts)_
51
+ _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v3.0.1/src/commands/jayree/manifest/cleanup.ts)_
131
52
 
132
53
  ### `sfdx jayree:manifest:generate`
133
54
 
@@ -163,7 +84,7 @@ EXAMPLES
163
84
  <Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
164
85
  ```
165
86
 
166
- _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/generate.ts)_
87
+ _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v3.0.1/src/commands/jayree/manifest/generate.ts)_
167
88
 
168
89
  ### `sfdx jayree:manifest:git:diff`
169
90
 
@@ -171,7 +92,8 @@ Create a project manifest and destructiveChanges manifest that lists the metadat
171
92
 
172
93
  ```
173
94
  USAGE
174
- $ sfdx jayree:manifest:git:diff REF1 [REF2] [--json] [-d <value>] [--output-dir <value>] [--destructive-changes-only]
95
+ $ sfdx jayree:manifest:git:diff REF1 [REF2] [--json] [--api-version <value>] [-d <value>] [--output-dir <value>]
96
+ [--destructive-changes-only]
175
97
 
176
98
  ARGUMENTS
177
99
  REF1 Base commit or branch.
@@ -179,6 +101,7 @@ ARGUMENTS
179
101
 
180
102
  FLAGS
181
103
  -d, --source-dir=<value>... Path to the local source files to include in the manifest.
104
+ --api-version=<value> Override the api version used for api requests made by this command
182
105
  --destructive-changes-only Create a destructiveChanges manifest only.
183
106
  --output-dir=<value> Directory to save the created manifest files.
184
107
 
@@ -194,6 +117,9 @@ DESCRIPTION
194
117
 
195
118
  You can use all ways to spell <commit> which are valid for 'git diff' (See https://git-scm.com/docs/git-diff).
196
119
 
120
+ ALIASES
121
+ $ sfdx jayree:manifest:beta:git:diff
122
+
197
123
  EXAMPLES
198
124
  Uses the changes between two arbitrary <commit>.
199
125
 
@@ -240,5 +166,83 @@ FLAG DESCRIPTIONS
240
166
  The location can be an absolute path or relative to the current working directory.
241
167
  ```
242
168
 
243
- _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.9.1/src/commands/jayree/manifest/git/diff.ts)_
169
+ _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v3.0.1/src/commands/jayree/manifest/git/diff.ts)_
170
+
171
+ ### `sfdx jayree:manifest:legacy:git:diff`
172
+
173
+ Create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or delete based on changes in your git history.
174
+
175
+ ```
176
+ USAGE
177
+ $ sfdx jayree:manifest:legacy:git:diff REF1 [REF2] [--json] [-d <value>] [--output-dir <value>]
178
+ [--destructive-changes-only]
179
+
180
+ ARGUMENTS
181
+ REF1 Base commit or branch.
182
+ REF2 Commit or branch to compare to the base commit.
183
+
184
+ FLAGS
185
+ -d, --source-dir=<value>... Path to the local source files to include in the manifest.
186
+ --destructive-changes-only Create a destructiveChanges manifest only.
187
+ --output-dir=<value> Directory to save the created manifest files.
188
+
189
+ GLOBAL FLAGS
190
+ --json Format output as json.
191
+
192
+ DESCRIPTION
193
+ Create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or
194
+ delete based on changes in your git history.
195
+
196
+ Use this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two
197
+ git refs.
198
+
199
+ You can use all ways to spell <commit> which are valid for 'git diff' (See https://git-scm.com/docs/git-diff).
200
+
201
+ EXAMPLES
202
+ Uses the changes between two arbitrary <commit>.
203
+
204
+ $ sfdx jayree:manifest:legacy:git:diff <commit> <commit>
205
+ $ sfdx jayree:manifest:legacy:git:diff <commit>..<commit>
206
+
207
+ Uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both
208
+ <commit>.
209
+
210
+ $ sfdx jayree:manifest:legacy:git:diff <commit>...<commit>
211
+
212
+ Uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1).
213
+
214
+ $ sfdx jayree:manifest:legacy:git:diff branchA..branchB
215
+
216
+ Uses the diff of what is unique in branchB (REF2).
217
+
218
+ $ sfdx jayree:manifest:legacy:git:diff branchA...branchB
219
+
220
+ Specify the flags before or after the REF args
221
+
222
+ $ sfdx jayree:manifest:legacy:git:diff --output-dir package <commit> <commit>
223
+ $ sfdx jayree:manifest:legacy:git:diff <commit> <commit> --output-dir package
224
+
225
+ If you specify the 'source-dir' flag before the REF args, use '--' to separate the args from the 'source-dir'
226
+ values.
227
+
228
+ $ sfdx jayree:manifest:legacy:git:diff --source-dir force-app -- <commit> <commit>
229
+
230
+ FLAG DESCRIPTIONS
231
+ -d, --source-dir=<value>... Path to the local source files to include in the manifest.
232
+
233
+ The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
234
+ (in which case the operation is applied to all metadata types in the directory and its subdirectories).
235
+
236
+ You can specify this flag more than once.
237
+
238
+ --destructive-changes-only Create a destructiveChanges manifest only.
239
+
240
+ Use this flag to create a 'destructiveChanges.xml' and a blank 'package.xml'.
241
+
242
+ --output-dir=<value> Directory to save the created manifest files.
243
+
244
+ The location can be an absolute path or relative to the current working directory.
245
+ ```
246
+
247
+ _See code: [src/commands/jayree/manifest/legacy/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v3.0.1/src/commands/jayree/manifest/legacy/git/diff.ts)_
244
248
  <!-- commandsstop -->
@@ -1,37 +1,40 @@
1
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
2
2
  import { Optional } from '@salesforce/ts-types';
3
3
  export interface GitDiffCommandResult {
4
- destructiveChanges: object;
5
- manifest: object;
4
+ manifest?: {
5
+ path: string;
6
+ name: string;
7
+ };
8
+ destructiveChanges?: {
9
+ path: string;
10
+ name: string;
11
+ };
6
12
  }
7
- export default class GitDiff extends SfCommand<GitDiffCommandResult> {
13
+ export default class GitDiffCommand extends SfCommand<GitDiffCommandResult> {
8
14
  static readonly summary: string;
9
15
  static readonly description: string;
10
16
  static readonly examples: string[];
11
17
  static readonly args: {
12
- ref1: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
13
- ref2: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
18
+ ref1: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
19
+ ref2: import("@oclif/core/lib/interfaces/parser.js").Arg<string | undefined, Record<string, unknown>>;
14
20
  };
15
21
  static readonly requiresProject = true;
22
+ static readonly deprecateAliases = true;
23
+ static readonly aliases: string[];
16
24
  static readonly flags: {
17
- 'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
18
- 'output-dir': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
19
- 'destructive-changes-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
25
+ 'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
26
+ 'source-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
27
+ 'output-dir': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
28
+ 'destructive-changes-only': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
20
29
  };
21
- private isOutputEnabled;
22
30
  private outputDir;
23
- private destructiveChangesOnly;
24
- private projectRoot;
25
- private sourceApiVersion;
26
- private destructiveChanges;
27
- private manifest;
28
- private gitLines;
29
- private ref1VirtualTreeContainer;
30
- private ref2VirtualTreeContainer;
31
+ private manifestName;
32
+ private destructiveChangesName;
33
+ private outputPath;
31
34
  private componentSet;
32
- private outputErrors;
33
- private outputWarnings;
34
- private fsPaths;
35
+ private destructiveChangesOnly;
35
36
  run(): Promise<GitDiffCommandResult>;
36
37
  protected getSourceApiVersion(): Promise<Optional<string>>;
38
+ protected createManifest(): Promise<void>;
39
+ protected formatResult(): GitDiffCommandResult;
37
40
  }