Skip to content

Commit

Permalink
chore(crons): Make monitors command visible (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored May 2, 2023
1 parent 204977c commit 92d058a
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 99 deletions.
6 changes: 2 additions & 4 deletions src/commands/monitors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ pub fn make_command(mut command: Command) -> Command {
}

command = command
.about("Manage monitors on Sentry.")
.about("Manage monitors on Sentry [beta].")
.subcommand_required(true)
.arg_required_else_help(true)
// Beta feature Left hidden while we iterate on this product
.hide(true);
.arg_required_else_help(true);

each_subcommand!(add_subcommand);
command
Expand Down
93 changes: 47 additions & 46 deletions tests/integration/_cases/help/help-windows.trycmd
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
```
$ sentry-cli help
? success
Command line utility for Sentry.

This tool helps you manage remote resources on a Sentry server like
sourcemaps, debug symbols or releases. Use `--help` on the subcommands
to learn more about them.

Usage: sentry-cli[EXE] [OPTIONS] <COMMAND>

Commands:
debug-files Locate, analyze or upload debug information files. [aliases: dif]
deploys Manage deployments for Sentry releases.
events Manage events on Sentry.
files Manage release artifacts.
info Print information about the configuration and verify authentication.
issues Manage issues in Sentry.
login Authenticate with the Sentry server.
organizations Manage organizations on Sentry.
projects Manage projects on Sentry.
react-native Upload build artifacts for react-native projects.
releases Manage releases on Sentry.
repos Manage repositories on Sentry.
send-event Send a manual event to Sentry.
send-envelope Send a stored envelope to Sentry.
sourcemaps Manage sourcemaps for Sentry releases.
upload-proguard Upload ProGuard mapping files to a project.
help Print this message or the help of the given subcommand(s)

Options:
--url <URL> Fully qualified URL to the Sentry server.
[default: https://sentry.io/]
--header <KEY:VALUE> Custom headers that should be attached to all requests
in key:value format.
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.
--api-key <API_KEY> Use the given Sentry API key.
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info,
warn, error]
--quiet Do not print any output while preserving correct exit code. This
flag is currently implemented only for selected subcommands.
[aliases: silent]
-h, --help Print help
-V, --version Print version

```
```
$ sentry-cli help
? success
Command line utility for Sentry.

This tool helps you manage remote resources on a Sentry server like
sourcemaps, debug symbols or releases. Use `--help` on the subcommands
to learn more about them.

Usage: sentry-cli[EXE] [OPTIONS] <COMMAND>

Commands:
debug-files Locate, analyze or upload debug information files. [aliases: dif]
deploys Manage deployments for Sentry releases.
events Manage events on Sentry.
files Manage release artifacts.
info Print information about the configuration and verify authentication.
issues Manage issues in Sentry.
login Authenticate with the Sentry server.
monitors Manage monitors on Sentry [beta].
organizations Manage organizations on Sentry.
projects Manage projects on Sentry.
react-native Upload build artifacts for react-native projects.
releases Manage releases on Sentry.
repos Manage repositories on Sentry.
send-event Send a manual event to Sentry.
send-envelope Send a stored envelope to Sentry.
sourcemaps Manage sourcemaps for Sentry releases.
upload-proguard Upload ProGuard mapping files to a project.
help Print this message or the help of the given subcommand(s)

Options:
--url <URL> Fully qualified URL to the Sentry server.
[default: https://sentry.io/]
--header <KEY:VALUE> Custom headers that should be attached to all requests
in key:value format.
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.
--api-key <API_KEY> Use the given Sentry API key.
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info,
warn, error]
--quiet Do not print any output while preserving correct exit code. This
flag is currently implemented only for selected subcommands.
[aliases: silent]
-h, --help Print help
-V, --version Print version

```
95 changes: 48 additions & 47 deletions tests/integration/_cases/help/help.trycmd
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
```
$ sentry-cli help
? success
Command line utility for Sentry.

This tool helps you manage remote resources on a Sentry server like
sourcemaps, debug symbols or releases. Use `--help` on the subcommands
to learn more about them.

Usage: sentry-cli[EXE] [OPTIONS] <COMMAND>

Commands:
debug-files Locate, analyze or upload debug information files. [aliases: dif]
deploys Manage deployments for Sentry releases.
events Manage events on Sentry.
files Manage release artifacts.
info Print information about the configuration and verify authentication.
issues Manage issues in Sentry.
login Authenticate with the Sentry server.
organizations Manage organizations on Sentry.
projects Manage projects on Sentry.
react-native Upload build artifacts for react-native projects.
releases Manage releases on Sentry.
repos Manage repositories on Sentry.
send-event Send a manual event to Sentry.
send-envelope Send a stored envelope to Sentry.
sourcemaps Manage sourcemaps for Sentry releases.
uninstall Uninstall the sentry-cli executable.
upload-proguard Upload ProGuard mapping files to a project.
help Print this message or the help of the given subcommand(s)

Options:
--url <URL> Fully qualified URL to the Sentry server.
[default: https://sentry.io/]
--header <KEY:VALUE> Custom headers that should be attached to all requests
in key:value format.
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.
--api-key <API_KEY> Use the given Sentry API key.
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info,
warn, error]
--quiet Do not print any output while preserving correct exit code. This
flag is currently implemented only for selected subcommands.
[aliases: silent]
-h, --help Print help
-V, --version Print version

```
```
$ sentry-cli help
? success
Command line utility for Sentry.

This tool helps you manage remote resources on a Sentry server like
sourcemaps, debug symbols or releases. Use `--help` on the subcommands
to learn more about them.

Usage: sentry-cli[EXE] [OPTIONS] <COMMAND>

Commands:
debug-files Locate, analyze or upload debug information files. [aliases: dif]
deploys Manage deployments for Sentry releases.
events Manage events on Sentry.
files Manage release artifacts.
info Print information about the configuration and verify authentication.
issues Manage issues in Sentry.
login Authenticate with the Sentry server.
monitors Manage monitors on Sentry [beta].
organizations Manage organizations on Sentry.
projects Manage projects on Sentry.
react-native Upload build artifacts for react-native projects.
releases Manage releases on Sentry.
repos Manage repositories on Sentry.
send-event Send a manual event to Sentry.
send-envelope Send a stored envelope to Sentry.
sourcemaps Manage sourcemaps for Sentry releases.
uninstall Uninstall the sentry-cli executable.
upload-proguard Upload ProGuard mapping files to a project.
help Print this message or the help of the given subcommand(s)

Options:
--url <URL> Fully qualified URL to the Sentry server.
[default: https://sentry.io/]
--header <KEY:VALUE> Custom headers that should be attached to all requests
in key:value format.
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.
--api-key <API_KEY> Use the given Sentry API key.
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info,
warn, error]
--quiet Do not print any output while preserving correct exit code. This
flag is currently implemented only for selected subcommands.
[aliases: silent]
-h, --help Print help
-V, --version Print version

```
2 changes: 1 addition & 1 deletion tests/integration/_cases/monitors/monitors-help.trycmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```
$ sentry-cli monitors --help
? success
Manage monitors on Sentry.
Manage monitors on Sentry [beta].

Usage: sentry-cli[EXE] monitors [OPTIONS] <COMMAND>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```
$ sentry-cli monitors
? failed
Manage monitors on Sentry.
Manage monitors on Sentry [beta].

Usage: sentry-cli[EXE] monitors [OPTIONS] <COMMAND>

Expand Down

0 comments on commit 92d058a

Please sign in to comment.