@@ -46,30 +46,26 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4646 $ output ->writeln ('Registered ExApp daemon configs: ' );
4747
4848 if ($ input ->getOption ('show-deploy-config ' )) {
49-
5049 foreach ($ daemonConfigs as $ daemon ) {
5150 $ deployConfig = $ daemon ->getDeployConfig ();
5251
5352 if (isset ($ deployConfig ['haproxy_password ' ])) {
54- $ deployConfig ['haproxy_password ' ] = '*** ' ;
53+ $ deployConfig ['haproxy_password ' ] = '*** ' ;
5554 }
5655
5756 $ daemonInfo = [
58- $ daemon ->getName () === $ defaultDaemonName ? '* ' : '' ,
59- $ daemon ->getName (),
60- $ daemon ->getDisplayName (),
61- $ daemon ->getAcceptsDeployId (),
62- $ daemon ->getProtocol (),
63- $ daemon ->getHost (),
64- $ deployConfig ,
57+ 'name ' => $ daemon ->getName (),
58+ 'display_name ' => $ daemon ->getDisplayName (),
59+ 'deploy_id ' => $ daemon ->getAcceptsDeployId (),
60+ 'protocol ' => $ daemon ->getProtocol (),
61+ 'host ' => $ daemon ->getHost (),
62+ 'deploy_config ' => $ deployConfig ,
6563 ];
6664
67- echo json_encode ($ daemonInfo , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
65+ $ output -> writeln ( json_encode ($ daemonInfo , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) );
6866 $ output ->writeln ('' );
6967 }
70-
7168 } else {
72-
7369 $ table = new Table ($ output );
7470 $ headers = ['Def ' , 'Name ' , 'Display name ' , 'Deploy ID ' , 'Protocol ' , 'Host ' , 'NC Url ' , 'Is HaRP ' , 'HaRP FRP Address ' , 'HaRP Docker Socket Port ' ];
7571 $ table ->setHeaders ($ headers );
0 commit comments