From 6f093ff69c83526279b9f039aca079162c2b68d5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 5 Feb 2021 09:32:52 +0000 Subject: refactor --- internal/clients/args.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'internal/clients/args.go') diff --git a/internal/clients/args.go b/internal/clients/args.go index 67d2044..684dadd 100644 --- a/internal/clients/args.go +++ b/internal/clients/args.go @@ -1,22 +1,16 @@ package clients import ( + "github.com/mimecast/dtail/internal/lcontext" "github.com/mimecast/dtail/internal/omode" gossh "golang.org/x/crypto/ssh" ) -// LineContext is here to help filtering out only specific lines. -type LineContext struct { - RegexStr string - AfterContext int - BeforeContext int - MaxCount int -} - // Args is a helper struct to summarize common client arguments. type Args struct { - LineContext + lcontext.LContext + RegexStr string Mode omode.Mode ServersStr string UserName string -- cgit v1.2.3