From 88a07b9d83d721163414540faa6eec100fa58822 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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/routes/dev/command_line_interface.dart b/lib/routes/dev/command_line_interface.dart index 1894a162e..e83723e10 100644 --- a/lib/routes/dev/command_line_interface.dart +++ b/lib/routes/dev/command_line_interface.dart @@ -1,4 +1,3 @@ -import 'dart:convert'; import 'dart:io'; import 'package:c_breez/routes/dev/widget/command_list.dart'; @@ -158,8 +157,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 +179,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: