Skip to content

Commit 923418e

Browse files
committed
Fix command dump
1 parent 55c7d42 commit 923418e

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ jobs:
4242
./command_dump.py
4343
- name: Detect changes on commit
4444
run: |
45-
if [ -n "$(git diff codecov-cli/codecovcli_commands)" ] || [ -n "$(git diff prevent-cli/preventcli_commands)" ]; then
45+
if [ -n "$(git diff codecov-cli/codecovcli_commands prevent-cli/preventcli_commands)" ]; then
4646
echo "Please run `python command_dump.py` before submitting, or install the hooks"
47-
echo "$(git diff codecov-cli/codecovcli_commands)"
48-
echo "$(git diff prevent-cli/preventcli_commands)"
47+
echo "$(git diff codecov-cli/codecovcli_commands prevent-cli/preventcli_commands)"
4948
exit 1
5049
fi
5150

command_dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def command_dump(commands: list[str], out_path: str):
3232

3333
if __name__ == "__main__":
3434
command_dump(["codecovcli"], "codecov-cli/codecovcli_commands")
35-
command_dump(["sentry-prevent-cli"], "prevent-cli/prevent-cli_commands")
35+
command_dump(["sentry-prevent-cli"], "prevent-cli/preventcli_commands")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Usage: prevent-cli [OPTIONS] COMMAND [ARGS]...
1+
Usage: sentry-prevent-cli [OPTIONS] COMMAND [ARGS]...
22

33
Options:
44
--auto-load-params-from [CircleCI|GithubActions|GitlabCI|Bitbucket|Bitrise|AppVeyor|Woodpecker|Heroku|DroneCI|BuildKite|AzurePipelines|Jenkins|CirrusCI|Teamcity|Travis|AWSCodeBuild|GoogleCloudBuild|Local]

0 commit comments

Comments
 (0)