Skip to content

Commit

Permalink
Merge pull request #893 from wakatime/misc/import-cfg-test
Browse files Browse the repository at this point in the history
Ensure importing another config file overwrites previous loaded variables
  • Loading branch information
gandarez authored Aug 3, 2023
2 parents 543db96 + 716d59d commit 0f41c3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ssl_certs_file =
timeout = 30
hostname = machinename
log_file =
import_cfg = /path/to/another/wakatime.cfg

[projectmap]
projects/foo = new project name
Expand Down Expand Up @@ -82,6 +83,7 @@ some/submodule/name = new project name
| timeout | Connection timeout in seconds when communicating with the api. | _int_ | `120` |
| hostname | Optional name of local machine. By default, auto-detects the local machine’s hostname. | _string_ | |
| log_file | Optional log file path. | _filepath_ | `~/.wakatime/wakatime.log` |
| import_cfg | Optional path to another wakatime.cfg file to import. If set it will overwrite values loaded from $WAKATIME_HOME/.wakatime.cfg file. | _filepath_ | |

### Project Map Section

Expand Down
1 change: 1 addition & 0 deletions cmd/testdata/.wakatime.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[settings]
api_key = 00000000-0000-4000-8000-000000000002
debug = true
import_cfg = "testdata/.import.cfg"

0 comments on commit 0f41c3b

Please sign in to comment.