@@ -102,13 +102,6 @@ pub struct Cli {
102102
103103 pub ms_clarity_tag : Option < String > ,
104104
105- // Trino vars
106- pub trino_endpoint : Option < String > ,
107- pub trino_username : Option < String > ,
108- pub trino_auth : Option < String > ,
109- pub trino_schema : Option < String > ,
110- pub trino_catalog : Option < String > ,
111-
112105 // Kafka specific env vars
113106 pub kafka_topics : Option < String > ,
114107 pub kafka_host : Option < String > ,
@@ -155,13 +148,6 @@ impl Cli {
155148 pub const MAX_DISK_USAGE : & ' static str = "max-disk-usage" ;
156149 pub const MS_CLARITY_TAG : & ' static str = "ms-clarity-tag" ;
157150
158- // Trino specific env vars
159- pub const TRINO_ENDPOINT : & ' static str = "p-trino-end-point" ;
160- pub const TRINO_CATALOG_NAME : & ' static str = "p-trino-catalog-name" ;
161- pub const TRINO_USER_NAME : & ' static str = "p-trino-user-name" ;
162- pub const TRINO_AUTHORIZATION : & ' static str = "p-trino-authorization" ;
163- pub const TRINO_SCHEMA : & ' static str = "p-trino-schema" ;
164-
165151 // Kafka specific env vars
166152 pub const KAFKA_TOPICS : & ' static str = "kafka-topics" ;
167153 pub const KAFKA_HOST : & ' static str = "kafka-host" ;
@@ -252,41 +238,6 @@ impl Cli {
252238 . value_name ( "STRING" )
253239 . help ( "Audit logger password" ) ,
254240 )
255- . arg (
256- Arg :: new ( Self :: TRINO_ENDPOINT )
257- . long ( Self :: TRINO_ENDPOINT )
258- . env ( "P_TRINO_ENDPOINT" )
259- . value_name ( "STRING" )
260- . help ( "Address and port for Trino HTTP(s) server" ) ,
261- )
262- . arg (
263- Arg :: new ( Self :: TRINO_CATALOG_NAME )
264- . long ( Self :: TRINO_CATALOG_NAME )
265- . env ( "P_TRINO_CATALOG_NAME" )
266- . value_name ( "STRING" )
267- . help ( "Name of the catalog to be queried (Translates to X-Trino-Catalog)" ) ,
268- )
269- . arg (
270- Arg :: new ( Self :: TRINO_SCHEMA )
271- . long ( Self :: TRINO_SCHEMA )
272- . env ( "P_TRINO_SCHEMA" )
273- . value_name ( "STRING" )
274- . help ( "Name of schema to be queried (Translates to X-Trino-Schema)" ) ,
275- )
276- . arg (
277- Arg :: new ( Self :: TRINO_USER_NAME )
278- . long ( Self :: TRINO_USER_NAME )
279- . env ( "P_TRINO_USER_NAME" )
280- . value_name ( "STRING" )
281- . help ( "Name of Trino user (Translates to X-Trino-User)" ) ,
282- )
283- . arg (
284- Arg :: new ( Self :: TRINO_AUTHORIZATION )
285- . long ( Self :: TRINO_AUTHORIZATION )
286- . env ( "P_TRINO_AUTHORIZATION" )
287- . value_name ( "STRING" )
288- . help ( "Base 64 encoded in the format username:password" ) ,
289- )
290241 . arg (
291242 Arg :: new ( Self :: TLS_CERT )
292243 . long ( Self :: TLS_CERT )
@@ -551,12 +502,6 @@ impl FromArgMatches for Cli {
551502 }
552503
553504 fn update_from_arg_matches ( & mut self , m : & clap:: ArgMatches ) -> Result < ( ) , clap:: Error > {
554- self . trino_catalog = m. get_one :: < String > ( Self :: TRINO_CATALOG_NAME ) . cloned ( ) ;
555- self . trino_endpoint = m. get_one :: < String > ( Self :: TRINO_ENDPOINT ) . cloned ( ) ;
556- self . trino_auth = m. get_one :: < String > ( Self :: TRINO_AUTHORIZATION ) . cloned ( ) ;
557- self . trino_schema = m. get_one :: < String > ( Self :: TRINO_SCHEMA ) . cloned ( ) ;
558- self . trino_username = m. get_one :: < String > ( Self :: TRINO_USER_NAME ) . cloned ( ) ;
559-
560505 self . kafka_topics = m. get_one :: < String > ( Self :: KAFKA_TOPICS ) . cloned ( ) ;
561506 self . kafka_security_protocol = m
562507 . get_one :: < SslProtocol > ( Self :: KAFKA_SECURITY_PROTOCOL )
0 commit comments