You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: klog/app/cli/args/filter.go
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -11,31 +11,31 @@ import (
11
11
12
12
typeFilterArgsstruct {
13
13
// Date-related filters:
14
-
Date klog.Date`name:"date" placeholder:"DATE" group:"Filter" help:"Entries at this date. DATE has to be in format YYYY-MM-DD or YYYY/MM/DD. E.g., '2024-01-31' or '2024/01/31'."`
15
-
Since klog.Date`name:"since" placeholder:"DATE" group:"Filter" help:"Entries since this date (inclusive)."`
16
-
Until klog.Date`name:"until" placeholder:"DATE" group:"Filter" help:"Entries until this date (inclusive)."`
17
-
Period period.Period`name:"period" placeholder:"PERIOD" group:"Filter" help:"Entries within a calendar period. PERIOD has to be in format YYYY, YYYY-MM, YYYY-Www or YYYY-Qq. E.g., '2024', '2024-04', '2022-W21' or '2024-Q1'."`
14
+
Date klog.Date`name:"date" placeholder:"DATE" group:"Filter Flags:" help:"Entries at this date. DATE has to be in format YYYY-MM-DD or YYYY/MM/DD. E.g., '2024-01-31' or '2024/01/31'."`
15
+
Since klog.Date`name:"since" placeholder:"DATE" group:"Filter Flags:" help:"Entries since this date (inclusive)."`
16
+
Until klog.Date`name:"until" placeholder:"DATE" group:"Filter Flags:" help:"Entries until this date (inclusive)."`
17
+
Period period.Period`name:"period" placeholder:"PERIOD" group:"Filter Flags:" help:"Entries within a calendar period. PERIOD has to be in format YYYY, YYYY-MM, YYYY-Www or YYYY-Qq. E.g., '2024', '2024-04', '2022-W21' or '2024-Q1'."`
18
18
19
19
// Filter shortcuts:
20
20
// The two `XXX` ones are dummy entries just for the help output, they also aren’t available
21
21
// for tab completion. The other ones are not shown in the help output (because that would be
22
22
// too verbose then), but they are still available for tab completion.
23
-
Todaybool`name:"today" group:"Filter" help:"Records at today’s date."`
24
-
Yesterdaybool`name:"yesterday" group:"Filter" help:"Records at yesterday’s date."`
25
-
ThisXXXbool`name:"this-***" group:"Filter" help:"Records of this week/month/quarter/year, e.g. '--this-week' or '--this-quarter'." completion-enabled:"false"`
26
-
LastXXXbool`name:"last-***" group:"Filter" help:"Records of last week/month/quarter/year, e.g. '--last-month' or '--last-year'." completion-enabled:"false"`
Todaybool`name:"today" group:"Filter Flags:" help:"Records at today’s date."`
24
+
Yesterdaybool`name:"yesterday" group:"Filter Flags:" help:"Records at yesterday’s date."`
25
+
ThisXXXbool`name:"this-***" group:"Filter Flags:" help:"Records of this week/month/quarter/year, e.g. '--this-week' or '--this-quarter'." completion-enabled:"false"`
26
+
LastXXXbool`name:"last-***" group:"Filter Flags:" help:"Records of last week/month/quarter/year, e.g. '--last-month' or '--last-year'." completion-enabled:"false"`
Tags []klog.Tag`name:"tag" placeholder:"TAG" group:"Filter" help:"Entries that match these tags (either in the record summary or the entry summary). You can omit the leading '#'."`
38
-
Filterstring`name:"filter" placeholder:"EXPR" group:"Filter" help:"Entries that match this filter expression. Run 'klog info --filtering' to learn how expressions works."`
37
+
Tags []klog.Tag`name:"tag" placeholder:"TAG" group:"Filter Flags:" help:"Entries that match these tags (either in the record summary or the entry summary). You can omit the leading '#'."`
38
+
Filterstring`name:"filter" placeholder:"EXPR" group:"Filter Flags:" help:"Entries that match this filter expression. Run 'klog info --filtering' to learn how expressions works."`
39
39
40
40
hasPartialRecordsWithShouldTotalbool// Field only for internal use
0 commit comments