Skip to content

Commit f8a65ed

Browse files
committed
chore(release): 1.3.2 [skip ci]
1 parent a028068 commit f8a65ed

File tree

3 files changed

+128
-58
lines changed

3 files changed

+128
-58
lines changed

CHANGELOG.md

+63-5
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,82 @@
1+
## [1.3.2](https://github.com/k-capehart/kc-sf-plugin/compare/1.3.0...1.3.2) (2024-05-28)
2+
3+
4+
### Bug Fixes
5+
6+
* remove postinstall ([a028068](https://github.com/k-capehart/kc-sf-plugin/commit/a0280687d8c0d6a3a26608c74093a8dd5970a8bf))
7+
8+
9+
10+
# [1.3.0](https://github.com/k-capehart/kc-sf-plugin/compare/1.2.1...1.3.0) (2024-05-28)
11+
12+
13+
14+
## [1.2.1](https://github.com/k-capehart/kc-sf-plugin/compare/1.2.0...1.2.1) (2024-05-22)
15+
16+
17+
18+
# [1.2.0](https://github.com/k-capehart/kc-sf-plugin/compare/1.1.9...1.2.0) (2024-05-22)
19+
20+
21+
22+
## [1.1.6](https://github.com/k-capehart/kc-sf-plugin/compare/1.1.5...1.1.6) (2024-05-22)
23+
24+
25+
26+
## [1.1.5](https://github.com/k-capehart/kc-sf-plugin/compare/1.1.4...1.1.5) (2024-05-22)
27+
28+
29+
30+
## [1.1.4](https://github.com/k-capehart/kc-sf-plugin/compare/1.1.3...1.1.4) (2024-05-22)
31+
32+
33+
34+
## [1.1.3](https://github.com/k-capehart/kc-sf-plugin/compare/1.1.2...1.1.3) (2024-05-22)
35+
36+
37+
### Bug Fixes
38+
39+
* add command in workflow to create .npmrc ([a2482d8](https://github.com/k-capehart/kc-sf-plugin/commit/a2482d8a187c74ffd1dd77d304b7c2f1c7438990))
40+
* package name ([5648c20](https://github.com/k-capehart/kc-sf-plugin/commit/5648c201e62e980558ce88f2b07581073e54f301))
41+
* rename token ([35f0bed](https://github.com/k-capehart/kc-sf-plugin/commit/35f0bed2ccf8f31100f004e15eac7235d390832e))
42+
* worflow testing ([5319403](https://github.com/k-capehart/kc-sf-plugin/commit/5319403be720234ede07c2bf01305a34c6dc3b97))
43+
44+
45+
146
# [1.1.0](https://github.com/k-capehart/kc-sf-plugin/compare/1.0.3...1.1.0) (2024-05-21)
247

48+
349
### Features
450

5-
- diff command with basic test ([5968779](https://github.com/k-capehart/kc-sf-plugin/commit/5968779ea3de0e3cc83264aacb9a43b5ca30c587))
6-
- diff local project with org ([6f8b98a](https://github.com/k-capehart/kc-sf-plugin/commit/6f8b98a4f5fae4b86fa20c9f81d321c717bc7d98))
51+
* diff command with basic test ([5968779](https://github.com/k-capehart/kc-sf-plugin/commit/5968779ea3de0e3cc83264aacb9a43b5ca30c587))
52+
* diff local project with org ([6f8b98a](https://github.com/k-capehart/kc-sf-plugin/commit/6f8b98a4f5fae4b86fa20c9f81d321c717bc7d98))
53+
54+
755

856
## [1.0.3](https://github.com/k-capehart/kc-sf-plugin/compare/1.0.2...1.0.3) (2024-05-17)
957

58+
1059
### Bug Fixes
1160

12-
- **deps:** bump @salesforce/sf-plugins-core from 9.0.1 to 9.0.10 ([ae111fe](https://github.com/k-capehart/kc-sf-plugin/commit/ae111fea7d5fb58bb07d0291a0de426942a0bb73))
61+
* **deps:** bump @salesforce/sf-plugins-core from 9.0.1 to 9.0.10 ([ae111fe](https://github.com/k-capehart/kc-sf-plugin/commit/ae111fea7d5fb58bb07d0291a0de426942a0bb73))
62+
63+
1364

1465
## [1.0.2](https://github.com/k-capehart/kc-sf-plugin/compare/1.0.1...1.0.2) (2024-05-17)
1566

67+
1668
### Bug Fixes
1769

18-
- **deps:** bump @salesforce/core from 7.3.3 to 7.3.8 ([3ce2d5d](https://github.com/k-capehart/kc-sf-plugin/commit/3ce2d5d8372b81e5ad434379cc52277cd578a252))
70+
* **deps:** bump @salesforce/core from 7.3.3 to 7.3.8 ([3ce2d5d](https://github.com/k-capehart/kc-sf-plugin/commit/3ce2d5d8372b81e5ad434379cc52277cd578a252))
71+
72+
1973

2074
## [1.0.1](https://github.com/k-capehart/kc-sf-plugin/compare/2d967be5c615ba15e1be2b96e6135bdbf7a92bb9...1.0.1) (2024-05-17)
2175

76+
2277
### Bug Fixes
2378

24-
- **deps:** bump @babel/traverse from 7.19.1 to 7.24.5 ([2d967be](https://github.com/k-capehart/kc-sf-plugin/commit/2d967be5c615ba15e1be2b96e6135bdbf7a92bb9))
79+
* **deps:** bump @babel/traverse from 7.19.1 to 7.24.5 ([2d967be](https://github.com/k-capehart/kc-sf-plugin/commit/2d967be5c615ba15e1be2b96e6135bdbf7a92bb9))
80+
81+
82+

README.md

+64-52
Original file line numberDiff line numberDiff line change
@@ -41,112 +41,124 @@ sf plugins
4141
## Commands
4242

4343
<!-- commands -->
44+
* [`sf kc diff`](#sf-kc-diff)
45+
* [`sf kc trigger-framework init`](#sf-kc-trigger-framework-init)
46+
* [`sf kc trigger-framework trigger`](#sf-kc-trigger-framework-trigger)
4447

45-
- [`sf kc trigger-framework init`](#sf-kc-trigger-framework-init)
46-
- [`sf kc trigger-framework trigger`](#sf-kc-trigger-framework-trigger)
47-
- [`sf kc diff`](#sf-kc-diff)
48-
49-
## `sf kc trigger-framework init`
48+
## `sf kc diff`
5049

51-
Auto generate an Apex Trigger framework. By default, the template uses this Trigger Handler Apex class: https://github.com/k-capehart/sfdc-trigger-framework
50+
Preview a retrieval and deploy to see what will be retrieved from the org, the potential conflicts, and the ignored files.
5251

5352
```
5453
USAGE
55-
$ sf kc trigger-framework init [--json] [--flags-dir <value>] [-d <value>]
54+
$ sf kc diff -o <value> [--json] [--flags-dir <value>] [--concise]
5655
5756
FLAGS
58-
-d, --target-dir=<value> [default: force-app/main/default] The target directory for your salesforce project.
59-
There should be subdirectories for classes/ and objects/.
57+
-o, --target-org=<value> (required) Login username or alias for the target org.
58+
--concise Omits files that are forceignored.
6059
6160
GLOBAL FLAGS
6261
--flags-dir=<value> Import flag values from a directory.
6362
--json Format output as json.
6463
6564
DESCRIPTION
66-
Using this command will initialize an Apex Trigger framework by creating an extendable Trigger Handler class based off a template.
67-
68-
Also creates a CustomSetting called BypassAutomation that can be used to optionally skip triggers for specific users.
65+
Preview a retrieval and deploy to see what will be retrieved from the org, the potential conflicts, and the ignored
66+
files.
6967
70-
SObject specific trigger handlers should extend this class and override the methods for beforeInsert(), afterInsert(), etc.
68+
You must run this command from within a project that has source tracking.
7169
72-
If a file already exists with the given name then it is not overwritten.
70+
The command outputs a table that describes the difference between your local project and an org. It is equivalent to
71+
running both the "sf project retrieve preview" and "sf project deploy preview" commands.
7372
7473
EXAMPLES
75-
Initialize the trigger framework in the directory: force-app/main/default
76-
$ sf kc trigger-framework init --target-dir force-app/main/default
74+
View differences between local org and an org with the alias "my-org"
75+
$ sf kc diff --target-org my-org
76+
View differences between local org and the default org, omitting ignored files
77+
$ sf kc diff --concise
78+
79+
FLAG DESCRIPTIONS
80+
-o, --target-org=<value> Login username or alias for the target org.
81+
82+
Overrides your default org.
83+
84+
--concise Omits files that are forceignored.
85+
86+
Ignore files by placing them in your .forceignore and using this flag.
7787
```
7888

79-
## `sf kc trigger-framework trigger`
89+
_See code: [src/commands/kc/diff.ts](https://github.com/k-capehart/kc-sf-plugin/blob/1.3.1/src/commands/kc/diff.ts)_
8090

81-
Create a new trigger, handler class, and helper class for a Salesforce object. Recommend using `kc trigger-framework init` first.
91+
## `sf kc trigger-framework init`
92+
93+
Auto generate an Apex Trigger framework. By default, the template uses this Trigger Handler Apex class: https://github.com/k-capehart/sfdc-trigger-framework
8294

8395
```
8496
USAGE
85-
$ sf kc trigger-framework trigger -s <value> [--json] [--flags-dir <value>] [-d <value>]
97+
$ sf kc trigger-framework init [--json] [--flags-dir <value>] [-d <value>]
8698
8799
FLAGS
88-
-d, --target-dir=<value> [default: force-app/main/default] The target directory for your apex classes and triggers.
89-
There should be subdirectories for classes/, triggers/, and objects/.
90-
-s, --sobject=<value>... (required) The name of the SObject that the trigger and classes will be created for.
100+
-d, --target-dir=<value> [default: force-app/main/default] The target directory for your salesforce project. There
101+
should be subdirectories for classes/ and objects/.
91102
92103
GLOBAL FLAGS
93104
--flags-dir=<value> Import flag values from a directory.
94105
--json Format output as json.
95106
96107
DESCRIPTION
97-
Given an SObject, creates a Trigger, a Handler class, a Helper class, a Test class, and a custom field for the BypassAutomation custom setting.
108+
Auto generate an Apex Trigger framework. By default, the template uses this Trigger Handler Apex class:
109+
https://github.com/k-capehart/sfdc-trigger-framework
98110
99-
The Handler class extends `TriggerHandler`.
111+
Using this command will initialize an Apex Trigger framework by creating an extendable Trigger Handler class based off
112+
a template.
100113
101-
The custom field is used in the Handler class to check whether implementation should be skipped.
114+
Also creates a CustomSetting called BypassAutomation that can be used to optionally skip triggers for specific users.
115+
116+
SObject specific trigger handlers should extend this class and override the methods for beforeInsert(), afterInsert(),
117+
etc.
118+
119+
If a file already exists with the given name then it is not overwritten.
102120
103121
EXAMPLES
104-
Create a new trigger, handler, and helper for the Account object.
105-
$ sf kc trigger-framework trigger --sobject Account
122+
Initialize the trigger framework in the directory: force-app/main/default
123+
124+
$ sf kc trigger-framework init --target-dir force-app/main/default
106125
```
107126

108-
## `sf kc diff`
127+
_See code: [src/commands/kc/trigger-framework/init.ts](https://github.com/k-capehart/kc-sf-plugin/blob/1.3.1/src/commands/kc/trigger-framework/init.ts)_
109128

110-
Preview a retrieval and deploy to see what will be retrieved from the org, the potential conflicts, and the ignored files.
129+
## `sf kc trigger-framework trigger`
130+
131+
Create a new trigger, handler class, and helper class for a Salesforce object. Recommend using `kc trigger-framework init` first.
111132

112133
```
113134
USAGE
114-
$ sf kc diff -o <value> [--json] [--flags-dir <value>] [--concise]
135+
$ sf kc trigger-framework trigger -s <value> [--json] [--flags-dir <value>] [-d <value>]
115136
116137
FLAGS
117-
-o, --target-org=<value> (required) Login username or alias for the target
118-
org.
119-
--concise Omits files that are forceignored.
138+
-d, --target-dir=<value> [default: force-app/main/default] The target directory for your apex classes and triggers.
139+
There should be subdirectories for classes/, triggers/, and objects/.
140+
-s, --sobject=<value>... (required) The name of the SObject that the trigger and classes will be created for.
120141
121142
GLOBAL FLAGS
122143
--flags-dir=<value> Import flag values from a directory.
123144
--json Format output as json.
124145
125146
DESCRIPTION
126-
Preview a retrieval and deploy to see what will be retrieved from the org, the potential conflicts, and the ignored
127-
files.
147+
Create a new trigger, handler class, and helper class for a Salesforce object. Recommend using `kc trigger-framework
148+
init` first.
128149
129-
You must run this command from within a project that has source tracking.
130-
131-
The command outputs a table that describes the difference between your local project and an org. It is equivalent to
132-
running both the "sf project retrieve preview" and "sf project deploy preview" commands.
133-
134-
EXAMPLES
135-
View differences between local org and an org with the alias "my-org"
136-
$ sf kc diff --target-org my-org
137-
View differences between local org and the default org, omitting ignored files
138-
$ sf kc diff --concise
150+
Given an SObject, creates a Trigger, a Handler class, a Helper class, a Test class, and a custom field for the
151+
BypassAutomation custom setting.
139152
140-
FLAG DESCRIPTIONS
141-
-o, --target-org=<value> Login username or alias for the target org.
153+
The Handler class extends `TriggerHandler`.
142154
143-
Overrides your default org.
155+
The custom field is used in the Handler class to check whether implementation should be skipped.
144156
145-
--concise Omits files that are forceignored.
157+
EXAMPLES
158+
Create a new trigger, handler, and helper for the Account object.
146159
147-
Ignore files by placing them in your .forceignore and using this flag.
160+
$ sf kc trigger-framework trigger --sobject Account
148161
```
149162

150-
_See code: [src/commands/kc/diff.ts](https://github.com/k-capehart/kc-sf-plugin/blob/v1.1.2/src/commands/kc/diff.ts)_
151-
163+
_See code: [src/commands/kc/trigger-framework/trigger.ts](https://github.com/k-capehart/kc-sf-plugin/blob/1.3.1/src/commands/kc/trigger-framework/trigger.ts)_
152164
<!-- commandsstop -->

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kc-sf-plugin",
33
"description": "Various commands for enabling salesforce development with the sf cli",
4-
"version": "1.3.1",
4+
"version": "1.3.2",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org",
77
"access": "public"

0 commit comments

Comments
 (0)