summaryrefslogtreecommitdiff
path: root/internal/clients/args.go
diff options
context:
space:
mode:
authorPaul Buetow <35781042+pbuetow@users.noreply.github.com>2021-03-29 17:49:16 +0100
committerGitHub <noreply@github.com>2021-03-29 17:49:16 +0100
commit9a467da883976c74d231ea9c7773430f583bab98 (patch)
tree4e75a996ef44bc5adc771c318753b0c4ad934269 /internal/clients/args.go
parente811d1725ee5f931ece6fac01db70227b0fc8a7a (diff)
parent93fce245564ffde20c3e5113757bc65672f69ed5 (diff)
Merge pull request #22 from snonux/develop
Add context awareness to dgrep
Diffstat (limited to 'internal/clients/args.go')
-rw-r--r--internal/clients/args.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/clients/args.go b/internal/clients/args.go
index 7f782f1..684dadd 100644
--- a/internal/clients/args.go
+++ b/internal/clients/args.go
@@ -1,6 +1,7 @@
package clients
import (
+ "github.com/mimecast/dtail/internal/lcontext"
"github.com/mimecast/dtail/internal/omode"
gossh "golang.org/x/crypto/ssh"
@@ -8,12 +9,13 @@ import (
// Args is a helper struct to summarize common client arguments.
type Args struct {
+ lcontext.LContext
+ RegexStr string
Mode omode.Mode
ServersStr string
UserName string
What string
Arguments []string
- RegexStr string
RegexInvert bool
TrustAllHosts bool
Discovery string
@@ -22,5 +24,5 @@ type Args struct {
SSHAuthMethods []gossh.AuthMethod
SSHHostKeyCallback gossh.HostKeyCallback
PrivateKeyPathFile string
- Quiet bool
+ Quiet bool
}