Skip to content

Add "--environment" option to "monitors run" (supplement "-e" shorthand) - #1881

Merged
szokeasaurusrex merged 2 commits into
getsentry:masterfrom
skalee:monitor-run-environment
Jan 22, 2024
Merged

szokeasaurusrex merged 2 commits into
getsentry:masterfrom
skalee:monitor-run-environment

Conversation

@skalee

@skalee skalee commented Dec 30, 2023

Copy link
Copy Markdown
Contributor

There is -e option in sentry-cli monitors run, which allows to pass environment name. However, it was missing any non-shorthand variant. This pull request fixes this inconsistency by adding --environment as an alternative name for this option.

Rationale

Some people prefer full option names for their explicitness, especially when writing scripts. All the other shorthand options for monitors run, i.e. -s and -h, have their non-shorthand variants, i.e. --schedule and --help, respectively.

There is `-e` option in `sentry-cli monitors run` already.  This commit
supplements it with a more explicit, non-shorthand name.
@szokeasaurusrex
szokeasaurusrex self-requested a review January 8, 2024 13:10

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I added a test for your changes and updated an existing test to reflect the new argument.

@szokeasaurusrex
szokeasaurusrex enabled auto-merge (squash) January 22, 2024 11:34
@szokeasaurusrex
szokeasaurusrex merged commit 1bdeba4 into getsentry:master Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants