You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/05 12:00:17 UTC
[plc4x] branch develop updated: feat(plc4xbrowser): added subcommands for clear
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 6aa9a57c5 feat(plc4xbrowser): added subcommands for clear
6aa9a57c5 is described below
commit 6aa9a57c5cd15d75962bd00d4591b4260e6c1aca
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Aug 5 14:00:10 2022 +0200
feat(plc4xbrowser): added subcommands for clear
---
plc4go/tools/plc4xbrowser/commands.go | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/plc4go/tools/plc4xbrowser/commands.go b/plc4go/tools/plc4xbrowser/commands.go
index b67e8c27e..1292908c7 100644
--- a/plc4go/tools/plc4xbrowser/commands.go
+++ b/plc4go/tools/plc4xbrowser/commands.go
@@ -387,6 +387,32 @@ var rootCommand = Command{
commandOutputClear()
return nil
},
+ subCommands: []Command{
+ {
+ Name: "message",
+ Description: "clears message output",
+ action: func(_ Command, _ string) error {
+ messageOutputClear()
+ return nil
+ },
+ },
+ {
+ Name: "console",
+ Description: "clears console output",
+ action: func(_ Command, _ string) error {
+ consoleOutputClear()
+ return nil
+ },
+ },
+ {
+ Name: "command",
+ Description: "clears command output",
+ action: func(_ Command, _ string) error {
+ commandOutputClear()
+ return nil
+ },
+ },
+ },
},
},
}