summaryrefslogtreecommitdiff
path: root/internal/clients/baseclient.go
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-02-05 09:32:52 +0000
committerPaul Buetow <git@mx.buetow.org>2021-02-05 09:32:52 +0000
commit6f093ff69c83526279b9f039aca079162c2b68d5 (patch)
tree8d695c5a100aae18ef90eeccc7ad2c075cfb39e5 /internal/clients/baseclient.go
parent18a4de2bb288d44c4e5a7560fced7a15e9a6469d (diff)
refactor
Diffstat (limited to 'internal/clients/baseclient.go')
-rw-r--r--internal/clients/baseclient.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/clients/baseclient.go b/internal/clients/baseclient.go
index 0bdd62e..f83fcfd 100644
--- a/internal/clients/baseclient.go
+++ b/internal/clients/baseclient.go
@@ -126,14 +126,14 @@ func (c *baseClient) makeCommandOptions() map[string]string {
if c.Args.Quiet {
options["quiet"] = fmt.Sprintf("%v", c.Args.Quiet)
}
- if c.Args.LineContext.MaxCount != 0 {
- options["max"] = fmt.Sprintf("%d", c.Args.LineContext.MaxCount)
+ if c.Args.LContext.MaxCount != 0 {
+ options["max"] = fmt.Sprintf("%d", c.Args.LContext.MaxCount)
}
- if c.Args.LineContext.BeforeContext != 0 {
- options["before"] = fmt.Sprintf("%d", c.Args.LineContext.BeforeContext)
+ if c.Args.LContext.BeforeContext != 0 {
+ options["before"] = fmt.Sprintf("%d", c.Args.LContext.BeforeContext)
}
- if c.Args.LineContext.AfterContext != 0 {
- options["after"] = fmt.Sprintf("%d", c.Args.LineContext.AfterContext)
+ if c.Args.LContext.AfterContext != 0 {
+ options["after"] = fmt.Sprintf("%d", c.Args.LContext.AfterContext)
}
return options