diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-02-05 09:32:52 +0000 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-02-05 09:32:52 +0000 |
| commit | 6f093ff69c83526279b9f039aca079162c2b68d5 (patch) | |
| tree | 8d695c5a100aae18ef90eeccc7ad2c075cfb39e5 /internal/clients/args.go | |
| parent | 18a4de2bb288d44c4e5a7560fced7a15e9a6469d (diff) | |
refactor
Diffstat (limited to 'internal/clients/args.go')
| -rw-r--r-- | internal/clients/args.go | 12 |
1 files changed, 3 insertions, 9 deletions
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 |
