@@ -168,10 +168,8 @@ export function registerGatewayCli(program: Command) {
168168 . action ( async ( method , opts , command ) => {
169169 await runGatewayCommand ( async ( ) => {
170170 const rpcOpts = resolveGatewayRpcOptions ( opts , command ) ;
171- const { readBestEffortConfig } = await loadConfigModule ( ) ;
172- const config = await readBestEffortConfig ( ) ;
173171 const params = JSON . parse ( String ( opts . params ?? "{}" ) ) ;
174- const result = await callGatewayCli ( method , { ... rpcOpts , config } , params ) ;
172+ const result = await callGatewayCli ( method , rpcOpts , params ) ;
175173 if ( rpcOpts . json ) {
176174 defaultRuntime . writeJson ( result ) ;
177175 return ;
@@ -194,9 +192,7 @@ export function registerGatewayCli(program: Command) {
194192 await runGatewayCommand ( async ( ) => {
195193 const rpcOpts = resolveGatewayRpcOptions ( opts , command ) ;
196194 const days = parseDaysOption ( opts . days ) ;
197- const { readBestEffortConfig } = await loadConfigModule ( ) ;
198- const config = await readBestEffortConfig ( ) ;
199- const result = await callGatewayCli ( "usage.cost" , { ...rpcOpts , config } , { days } ) ;
195+ const result = await callGatewayCli ( "usage.cost" , rpcOpts , { days } ) ;
200196 if ( rpcOpts . json ) {
201197 defaultRuntime . writeJson ( result ) ;
202198 return ;
@@ -217,17 +213,11 @@ export function registerGatewayCli(program: Command) {
217213 . action ( async ( opts , command ) => {
218214 await runGatewayCommand ( async ( ) => {
219215 const rpcOpts = resolveGatewayRpcOptions ( opts , command ) ;
220- const [
221- { readBestEffortConfig } ,
222- { formatHealthChannelLines } ,
223- { styleHealthChannelLine } ,
224- ] = await Promise . all ( [
225- loadConfigModule ( ) ,
216+ const [ { formatHealthChannelLines } , { styleHealthChannelLine } ] = await Promise . all ( [
226217 loadGatewayHealthModule ( ) ,
227218 loadHealthStyleModule ( ) ,
228219 ] ) ;
229- const config = await readBestEffortConfig ( ) ;
230- const result = await callGatewayCli ( "health" , { ...rpcOpts , config } ) ;
220+ const result = await callGatewayCli ( "health" , rpcOpts ) ;
231221 if ( rpcOpts . json ) {
232222 defaultRuntime . writeJson ( result ) ;
233223 return ;
0 commit comments