Skip to content

Commit c81b2c5

Browse files
committed
Docs
1 parent 27ec2aa commit c81b2c5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

klog/app/cli/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package cli
22

33
import (
4+
"path/filepath"
5+
"strings"
6+
47
"github.com/jotaen/klog/klog/app"
58
tf "github.com/jotaen/klog/klog/app/cli/terminalformat"
69
"github.com/jotaen/klog/klog/app/cli/util"
7-
"path/filepath"
8-
"strings"
910
)
1011

1112
type Config struct {
@@ -27,7 +28,7 @@ klog relies on file-based configuration to customise some of its default behavio
2728
2829
Run 'klog config --location' to print the path of the folder where klog looks for the configuration.
2930
The config folder can contain one or both of the following files:
30-
- '` + app.CONFIG_FILE_NAME + `': you can create this file manually to override some of klog’s default behaviour. You may use the output of the 'klog config' command as template for setting up this file, as its output is in valid syntax.
31+
- '` + app.CONFIG_FILE_NAME + `': you can create this file manually to override some of klog’s default behaviour. You may use the output of the 'klog config' command as template for setting up this file, as its output is valid .ini syntax.
3132
- '` + app.BOOKMARKS_FILE_NAME + `': if you use the bookmarks functionality, then klog uses this file as database. You are not supposed to edit this file by hand! Instead, use the 'klog bookmarks' command to manage your bookmarks.
3233
3334
You can customise the location of the config folder via environment variables. klog uses the following lookup precedence:

klog/app/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ var CONFIG_FILE_ENTRIES = []ConfigFileEntries[any]{
238238
}, {
239239
Name: "no_warnings",
240240
Help: Help{
241-
Summary: "Whether klog should suppress warnings when processing files.",
242-
Value: "The config property must be one of: `UNCLOSED_OPEN_RANGE` (for unclosed open ranges in past records), `FUTURE_ENTRIES` (for records/entries in the future), `OVERLAPPING_RANGES` (for time ranges that overlap), `MORE_THAN_24H` (if there is a record with more than 24h total). Multiple values must be separated by a comma, e.g.: `UNCLOSED_OPEN_RANGE, MORE_THAN_24H`.",
241+
Summary: "Whether klog should suppress certain warnings when processing files.",
242+
Value: "The config property must be one (or several comma-separated) of: `UNCLOSED_OPEN_RANGE` (for unclosed open ranges in past records), `FUTURE_ENTRIES` (for records/entries in the future), `OVERLAPPING_RANGES` (for time ranges that overlap), `MORE_THAN_24H` (if there is a record with more than 24h total). Multiple values must be separated by a comma, e.g.: `UNCLOSED_OPEN_RANGE, MORE_THAN_24H`.",
243243
Default: "If absent/empty, klog prints all available warnings.",
244244
},
245245
read: func(value string, config *Config) error {

0 commit comments

Comments
 (0)