@@ -6,6 +6,9 @@ use anyhow::Result;
66use clap:: ArgMatches ;
77use clap:: { Args , Command , Parser as _, Subcommand } ;
88
9+ const BETA_WARNING : & str = "[BETA] The \" logs\" command is in beta. The command is subject \
10+ to breaking changes, including removal, in any Sentry CLI release.";
11+
912const LIST_ABOUT : & str = "List logs from your organization" ;
1013
1114#[ derive( Args ) ]
@@ -15,14 +18,19 @@ pub(super) struct LogsArgs {
1518}
1619
1720#[ derive( Subcommand ) ]
18- #[ command( about = "Manage logs in Sentry" ) ]
19- #[ command( long_about = "Manage and query logs in Sentry. \
20- This command provides access to log entries.") ]
21+ #[ command( about = "[BETA] Manage logs in Sentry" ) ]
22+ #[ command( long_about = format!(
23+ "Manage and query logs in Sentry. \
24+ This command provides access to log entries.\n \n \
25+ {BETA_WARNING}")
26+ ) ]
2127enum LogsSubcommand {
22- #[ command( about = LIST_ABOUT ) ]
28+ #[ command( about = format! ( "[BETA] { LIST_ABOUT}" ) ) ]
2329 #[ command( long_about = format!( "{LIST_ABOUT}. \
2430 Query and filter log entries from your Sentry projects. \
25- Supports filtering by log level and custom queries.") ) ]
31+ Supports filtering by log level and custom queries.\n \n \
32+ {BETA_WARNING}")
33+ ) ]
2634 List ( ListLogsArgs ) ,
2735}
2836
@@ -35,6 +43,8 @@ pub(super) fn execute(_: &ArgMatches) -> Result<()> {
3543 unreachable ! ( "expected logs subcommand" ) ;
3644 } ;
3745
46+ eprintln ! ( "{BETA_WARNING}" ) ;
47+
3848 match subcommand {
3949 LogsSubcommand :: List ( args) => list:: execute ( args) ,
4050 }
0 commit comments