From 7599edabe4f36bd42b3c9060774aa362c5e4108e Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 14 Oct 2024 11:14:16 +0200 Subject: [PATCH] use raw text as command result --- lib/routes/dev/command_line_interface.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/routes/dev/command_line_interface.dart b/lib/routes/dev/command_line_interface.dart index 1894a162e..6ee7a4810 100644 --- a/lib/routes/dev/command_line_interface.dart +++ b/lib/routes/dev/command_line_interface.dart @@ -158,8 +158,6 @@ class _CommandLineInterfaceState extends State { _lastCommand = command; isLoading = true; }); - // TODO: Style the response output from SDK - const JsonEncoder encoder = JsonEncoder.withIndent(' '); try { var commandArgs = command.split(RegExp(r"\s")); if (commandArgs.isEmpty) { @@ -182,9 +180,7 @@ class _CommandLineInterfaceState extends State { case 'stop': final command = commandArgs[0].toLowerCase(); _log.info("executing command: $command"); - final answer = await _breezSDK.executeCommand(command: command); - _log.info("Received answer: $answer"); - reply = encoder.convert(answer); + reply = await _breezSDK.executeCommand(command: command); _log.info("Reply: $reply"); break; default: