@@ -10,7 +10,7 @@ use crate::druid_connection_controller::DRUID_CONNECTION_CONTROLLER_NAME;
10
10
use crate :: superset_controller:: SUPERSET_CONTROLLER_NAME ;
11
11
use crate :: superset_db_controller:: SUPERSET_DB_CONTROLLER_NAME ;
12
12
13
- use clap:: Parser ;
13
+ use clap:: { crate_description , crate_version , Parser } ;
14
14
use futures:: StreamExt ;
15
15
use stackable_operator:: {
16
16
cli:: { Command , ProductOperatorRun } ,
@@ -36,13 +36,14 @@ use std::sync::Arc;
36
36
37
37
mod built_info {
38
38
include ! ( concat!( env!( "OUT_DIR" ) , "/built.rs" ) ) ;
39
+ pub const TARGET_PLATFORM : Option < & str > = option_env ! ( "TARGET" ) ;
39
40
}
40
41
41
42
pub const APP_PORT : u16 = 8088 ;
42
43
pub const OPERATOR_NAME : & str = "superset.stackable.tech" ;
43
44
44
45
#[ derive( Parser ) ]
45
- #[ clap( about = built_info :: PKG_DESCRIPTION , author = stackable_operator :: cli :: AUTHOR ) ]
46
+ #[ clap( about, author) ]
46
47
struct Opts {
47
48
#[ clap( subcommand) ]
48
49
cmd : Command ,
@@ -68,10 +69,10 @@ async fn main() -> anyhow::Result<()> {
68
69
tracing_target,
69
70
) ;
70
71
stackable_operator:: utils:: print_startup_string (
71
- built_info :: PKG_DESCRIPTION ,
72
- built_info :: PKG_VERSION ,
72
+ crate_description ! ( ) ,
73
+ crate_version ! ( ) ,
73
74
built_info:: GIT_VERSION ,
74
- built_info:: TARGET ,
75
+ built_info:: TARGET_PLATFORM . unwrap_or ( "unknown target" ) ,
75
76
built_info:: BUILT_TIME_UTC ,
76
77
built_info:: RUSTC_VERSION ,
77
78
) ;
0 commit comments