mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add PlainTextWriter interface
This commit is contained in:
parent
641dc7577c
commit
15e8029715
16 changed files with 69 additions and 66 deletions
|
@ -92,7 +92,7 @@ public class App {
|
|||
public void init() throws CommandException {
|
||||
var outputType = ns.<OutputType>get("output");
|
||||
var outputWriter = outputType == OutputType.JSON
|
||||
? new JsonWriter(System.out)
|
||||
? new JsonWriterImpl(System.out)
|
||||
: new PlainTextWriterImpl(System.out);
|
||||
|
||||
var commandKey = ns.getString("command");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue