From 92d058a47a852ca12ff8c2ec37000e96efaaa64d Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Tue, 2 May 2023 15:27:13 -0700 Subject: [PATCH] chore(crons): Make monitors command visible (#1600) --- src/commands/monitors/mod.rs | 6 +- .../_cases/help/help-windows.trycmd | 93 +++++++++--------- tests/integration/_cases/help/help.trycmd | 95 ++++++++++--------- .../_cases/monitors/monitors-help.trycmd | 2 +- .../monitors/monitors-no-subcommand.trycmd | 2 +- 5 files changed, 99 insertions(+), 99 deletions(-) diff --git a/src/commands/monitors/mod.rs b/src/commands/monitors/mod.rs index 14f662d517..a9267530ac 100644 --- a/src/commands/monitors/mod.rs +++ b/src/commands/monitors/mod.rs @@ -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 diff --git a/tests/integration/_cases/help/help-windows.trycmd b/tests/integration/_cases/help/help-windows.trycmd index e5b4b00312..67969c4c9a 100644 --- a/tests/integration/_cases/help/help-windows.trycmd +++ b/tests/integration/_cases/help/help-windows.trycmd @@ -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] - -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 Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests - in key:value format. - --auth-token Use the given Sentry auth token. - --api-key Use the given Sentry API key. - --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] + +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 Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests + in key:value format. + --auth-token Use the given Sentry auth token. + --api-key Use the given Sentry API key. + --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 + +``` diff --git a/tests/integration/_cases/help/help.trycmd b/tests/integration/_cases/help/help.trycmd index 7eec2c9275..a3f7ae4eeb 100644 --- a/tests/integration/_cases/help/help.trycmd +++ b/tests/integration/_cases/help/help.trycmd @@ -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] - -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 Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests - in key:value format. - --auth-token Use the given Sentry auth token. - --api-key Use the given Sentry API key. - --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] + +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 Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests + in key:value format. + --auth-token Use the given Sentry auth token. + --api-key Use the given Sentry API key. + --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 + +``` diff --git a/tests/integration/_cases/monitors/monitors-help.trycmd b/tests/integration/_cases/monitors/monitors-help.trycmd index aa945fb981..25691ef002 100644 --- a/tests/integration/_cases/monitors/monitors-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-help.trycmd @@ -1,7 +1,7 @@ ``` $ sentry-cli monitors --help ? success -Manage monitors on Sentry. +Manage monitors on Sentry [beta]. Usage: sentry-cli[EXE] monitors [OPTIONS] diff --git a/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd b/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd index 4e6b3d6c09..8ef50226a4 100644 --- a/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd +++ b/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd @@ -1,7 +1,7 @@ ``` $ sentry-cli monitors ? failed -Manage monitors on Sentry. +Manage monitors on Sentry [beta]. Usage: sentry-cli[EXE] monitors [OPTIONS]