Skip to content

Commit 33ad38e

Browse files
committed
fix: fix messages and ensure all flags are required
1 parent c7603c2 commit 33ad38e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ Recommend running this command in your project's root directory.
6262

6363
```
6464
USAGE
65-
$ sf apex-tests-git-delta -f <value> -t <value> -e <value> [--json]
65+
$ sf apex-tests-git-delta delta -f <value> -t <value> -e <value> [--json]
6666
6767
FLAGS
6868
-f, --from=<value> Git commit SHA from where the commit message log is done. This SHA's commit message will be included in the results.
69-
-t, --to=<value> Git commit SHA to where the commit message log is done. [default: HEAD]
70-
-e, --regular-expression=<value> [default: 'sfdx-project.json' in the current working directory] The path to your Salesforce DX configuration file, 'sfdx-project.json'.
69+
-t, --to=<value> [default: HEAD] Git commit SHA to where the commit message log is done.
70+
-e, --regular-expression=<value> [default: regex.txt] The text file containing the Apex Tests regular expression to search for.
7171
7272
GLOBAL FLAGS
7373
--json Format output as json.
@@ -76,5 +76,5 @@ DESCRIPTION
7676
Given 2 git commits, this plugin will parse all of the commit messages between this range, including the '--from' commit, and return the delta Apex test class string. This can be used to execute delta deployments.
7777
7878
EXAMPLES
79-
$ sf apex-tests-git-delta --from "abcdef" --to "ghifb" --regular-expression "regex.txt"
79+
$ sf apex-tests-git-delta delta --from "abcdef" --to "ghifb" --regular-expression "regex.txt"
8080
```

messages/delta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Given 2 git commits, this plugin will parse all of the commit messages between t
88

99
# examples
1010

11-
- `sf apex-tests-git-delta --from "abcdef" --to "ghifb" --regular-expression "regex.txt"`
11+
- `sf apex-tests-git-delta delta --from "abcdef" --to "ghifb" --regular-expression "regex.txt"`
1212

1313
# flags.from.summary
1414

@@ -20,4 +20,4 @@ Git commit SHA to where the commit message log is done.
2020

2121
# flags.regular-expression.summary
2222

23-
The text file containing the Apex Tests regular expression to search for (default: `regex.txt` in current running directory).
23+
The text file containing the Apex Tests regular expression to search for.

src/commands/apex-tests-git-delta/delta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class ApexTestDelta extends SfCommand<TestDeltaResult> {
2121
'to': Flags.string({
2222
char: 't',
2323
summary: messages.getMessage('flags.to.summary'),
24+
required: true,
2425
default: TO_DEFAULT_VALUE,
2526
}),
2627
'from': Flags.string({

0 commit comments

Comments
 (0)