@@ -6,6 +6,9 @@ use anyhow::Result;
6
6
use clap:: ArgMatches ;
7
7
use clap:: { Args , Command , Parser as _, Subcommand } ;
8
8
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
+
9
12
const LIST_ABOUT : & str = "List logs from your organization" ;
10
13
11
14
#[ derive( Args ) ]
@@ -15,14 +18,19 @@ pub(super) struct LogsArgs {
15
18
}
16
19
17
20
#[ 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
+ ) ]
21
27
enum LogsSubcommand {
22
- #[ command( about = LIST_ABOUT ) ]
28
+ #[ command( about = format! ( "[BETA] { LIST_ABOUT}" ) ) ]
23
29
#[ command( long_about = format!( "{LIST_ABOUT}. \
24
30
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
+ ) ]
26
34
List ( ListLogsArgs ) ,
27
35
}
28
36
@@ -35,6 +43,8 @@ pub(super) fn execute(_: &ArgMatches) -> Result<()> {
35
43
unreachable ! ( "expected logs subcommand" ) ;
36
44
} ;
37
45
46
+ eprintln ! ( "{BETA_WARNING}" ) ;
47
+
38
48
match subcommand {
39
49
LogsSubcommand :: List ( args) => list:: execute ( args) ,
40
50
}
0 commit comments