Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(crons): Make monitors command visible #1600

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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