summaryrefslogtreecommitdiff
path: root/internal/clients/tailclient.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-09-18 14:41:25 +0300
committerPaul Buetow <paul@buetow.org>2021-10-02 12:26:29 +0300
commit6506e20f6c80f4acb7434eb9dd14f784a67189cd (patch)
tree1554831a5468729aa48c0baf3d5c9a78a8499288 /internal/clients/tailclient.go
parent7fbea88cf55af9b3354b4a1334e49c38d0d920fc (diff)
add spartan mode
Diffstat (limited to 'internal/clients/tailclient.go')
-rw-r--r--internal/clients/tailclient.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/clients/tailclient.go b/internal/clients/tailclient.go
index cefbaa7..360354b 100644
--- a/internal/clients/tailclient.go
+++ b/internal/clients/tailclient.go
@@ -38,9 +38,12 @@ func (c TailClient) makeHandler(server string) handlers.Handler {
}
func (c TailClient) makeCommands() (commands []string) {
- options := fmt.Sprintf("quiet=%v", c.Args.Quiet)
for _, file := range strings.Split(c.What, ",") {
- commands = append(commands, fmt.Sprintf("%s:%s %s %s", c.Mode.String(), options, file, c.Regex.Serialize()))
+ commands = append(commands, fmt.Sprintf("%s:%s %s %s",
+ c.Mode.String(),
+ c.Args.SerializeOptions(),
+ file,
+ c.Regex.Serialize()))
}
logger.Debug(commands)