Skip to content

Commit

Permalink
up: update some for self config command
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 10, 2022
1 parent 7d88fe5 commit 613a89d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/Console/Controller/SelfController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Inhere\Kite\Console\Controller;

use Inhere\Console\Component\Formatter\JSONPretty;
use Inhere\Console\Component\Formatter\Title;
use Inhere\Console\Controller;
use Inhere\Console\Exception\PromptException;
Expand Down Expand Up @@ -165,7 +166,9 @@ public function configCommand(FlagsParser $fs, Output $output): void
'indent' => 0,
'titlePos' => Title::POS_MIDDLE,
]);
$output->json($conf);

$result = JSONPretty::prettyData($conf);
$output->write($result);
return;
}

Expand All @@ -192,7 +195,9 @@ public function configCommand(FlagsParser $fs, Output $output): void
'indent' => 0,
'titlePos' => Title::POS_MIDDLE,
]);
$output->json($value);

$result = JSONPretty::prettyData($value);
$output->write($result);
}
}

Expand Down

0 comments on commit 613a89d

Please sign in to comment.