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/bookmarks.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,12 +35,14 @@ A bookmark name is denoted by the prefix '@'. For example, if you have a bookmar
35
35
klog edit @work
36
36
37
37
You can specify as many bookmarks as you want. There can also be one “unnamed” default bookmark (which internally is identified by the name '@default').
38
-
This is useful in case you only have one main file at a time, and allows you to use klog without any input arguments at all. E.g.:
38
+
This is useful in case you only have one main file at a time, and allows you to use klog without any file-related input arguments at all. E.g.:
39
39
40
40
klog total
41
41
klog start --summary 'Started new project'
42
42
43
-
When creating a bookmark, you can also create the respective target file by using the '--create' flag.
43
+
When setting up a bookmark, you can also create the respective target file on the file system by using the '--create' flag.
44
+
45
+
Note that klog keeps track of the bookmarks in an internal config file. Run 'klog config --help' to learn more.
You are able to configure some of klog’s behaviour by providing a configuration file.
26
+
klog relies on file-based configuration to customise some of its default behaviour and to keep track of its internal state.
16
27
17
-
If you run 'klog config', you can learn about the supported properties in the file, and which of those you have set.
18
-
You may use the output of that command as template for setting up your config file, as its format is valid syntax.
28
+
Run 'klog config --location' to print the path of the folder where klog looks for the configuration.
29
+
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.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.
19
32
20
-
The configuration file is named 'config.ini' and resides in your klog config folder.
21
-
Run 'klog info config-folder' to learn where your klog config folder is located.
33
+
You can customise the location of the config folder via environment variables. klog uses the following lookup precedence:
Aboutbool`name:"about" help:"Print meta information about klog."`
14
11
}
15
12
16
-
func (opt*Info) Help() string {
17
-
return`
18
-
Run 'klog info config-folder' to see the location of your klog config folder.
19
-
The location of the config folder depends on your operating system and environment settings.
20
-
You can customise the folder’s location via environment variables – run the command to learn which ones klog relies on.
21
-
22
-
The config folder is used to store two files:
23
-
- 'config.ini' (optional) – you can create this file manually to override some of klog’s default behaviour. Run 'klog config' to learn more.
24
-
- 'bookmarks.json' (optional) – if you use bookmarks, 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.
25
-
26
-
Run 'klog info spec' to read the formal specification of the klog file format.
27
-
If you want to review klog’s license and copyright information, run 'klog info license'.
0 commit comments