Ability to only track folders containing a .wakatime-project file
This commit is contained in:
parent
15408459af
commit
27e2d13788
22 changed files with 351 additions and 86 deletions
|
@ -1,8 +1,8 @@
|
|||
[settings]
|
||||
verbose = true
|
||||
api_key = d491a956-c8f2-44a9-98a7-987814bd71ba
|
||||
logfile = /tmp/waka
|
||||
hidefilenames = true
|
||||
log_file = /tmp/waka
|
||||
hide_filenames = true
|
||||
exclude =
|
||||
^COMMIT_EDITMSG$
|
||||
^TAG_EDITMSG$
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[settings]
|
||||
debug = false
|
||||
api_key = 033c47c9-0441-4eb5-8b3f-b51f27b31049
|
||||
hidefilenames =
|
||||
hide_filenames =
|
||||
missingfile
|
||||
python\.py$
|
||||
|
|
3
tests/samples/configs/include_only_with_project_file.cfg
Normal file
3
tests/samples/configs/include_only_with_project_file.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[settings]
|
||||
api_key = 1090a6ae-855f-4be7-b8fb-3edbaf1aa3ec
|
||||
include_only_with_project_file = true
|
|
@ -1,4 +1,4 @@
|
|||
[settings]
|
||||
debug = false
|
||||
api_key = 033c47c9-0441-4eb5-8b3f-b51f27b31049
|
||||
hidefilenames = invalid(regex
|
||||
hide_filenames = invalid(regex
|
||||
|
|
|
@ -12,4 +12,4 @@ include =
|
|||
\(invalid regex)
|
||||
includeme
|
||||
offline = true
|
||||
hidefilenames = true
|
||||
hide_filenames = true
|
||||
|
|
15
tests/samples/configs/paranoid_legacy.cfg
Normal file
15
tests/samples/configs/paranoid_legacy.cfg
Normal file
|
@ -0,0 +1,15 @@
|
|||
[settings]
|
||||
debug = false
|
||||
api_key = c21f8ebd-6a6a-48a0-900b-0870db3d7afe
|
||||
api_url = https://api.wakatime.com/api/v1/heartbeats
|
||||
ignore =
|
||||
COMMIT_EDITMSG$
|
||||
TAG_EDITMSG$
|
||||
exclude =
|
||||
excludeme
|
||||
\(invalid regex)
|
||||
include =
|
||||
\(invalid regex)
|
||||
includeme
|
||||
offline = true
|
||||
hidefilenames = true
|
|
@ -2,8 +2,9 @@ usage: wakatime [-h] [--entity FILE] [--key KEY] [--write] [--plugin PLUGIN]
|
|||
[--time time] [--lineno LINENO] [--cursorpos CURSORPOS]
|
||||
[--entity-type ENTITY_TYPE] [--proxy PROXY] [--no-ssl-verify]
|
||||
[--project PROJECT] [--alternate-project ALTERNATE_PROJECT]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME] [--disableoffline]
|
||||
[--hidefilenames] [--exclude EXCLUDE] [--include INCLUDE]
|
||||
[--extra-heartbeats] [--logfile LOGFILE] [--apiurl API_URL]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME]
|
||||
[--disable-offline] [--hide-filenames] [--exclude EXCLUDE]
|
||||
[--include INCLUDE] [--include-only-with-project-file]
|
||||
[--extra-heartbeats] [--log-file LOG_FILE] [--api-url API_URL]
|
||||
[--timeout TIMEOUT] [--config CONFIG] [--verbose] [--version]
|
||||
wakatime: error: Missing api key. Find your api key from wakatime.com/settings.
|
||||
|
|
|
@ -2,8 +2,9 @@ usage: wakatime [-h] [--entity FILE] [--key KEY] [--write] [--plugin PLUGIN]
|
|||
[--time time] [--lineno LINENO] [--cursorpos CURSORPOS]
|
||||
[--entity-type ENTITY_TYPE] [--proxy PROXY] [--no-ssl-verify]
|
||||
[--project PROJECT] [--alternate-project ALTERNATE_PROJECT]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME] [--disableoffline]
|
||||
[--hidefilenames] [--exclude EXCLUDE] [--include INCLUDE]
|
||||
[--extra-heartbeats] [--logfile LOGFILE] [--apiurl API_URL]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME]
|
||||
[--disable-offline] [--hide-filenames] [--exclude EXCLUDE]
|
||||
[--include INCLUDE] [--include-only-with-project-file]
|
||||
[--extra-heartbeats] [--log-file LOG_FILE] [--api-url API_URL]
|
||||
[--timeout TIMEOUT] [--config CONFIG] [--verbose] [--version]
|
||||
wakatime: error: Missing api key. Find your api key from wakatime.com/settings.
|
||||
|
|
|
@ -2,8 +2,9 @@ usage: wakatime [-h] [--entity FILE] [--key KEY] [--write] [--plugin PLUGIN]
|
|||
[--time time] [--lineno LINENO] [--cursorpos CURSORPOS]
|
||||
[--entity-type ENTITY_TYPE] [--proxy PROXY] [--no-ssl-verify]
|
||||
[--project PROJECT] [--alternate-project ALTERNATE_PROJECT]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME] [--disableoffline]
|
||||
[--hidefilenames] [--exclude EXCLUDE] [--include INCLUDE]
|
||||
[--extra-heartbeats] [--logfile LOGFILE] [--apiurl API_URL]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME]
|
||||
[--disable-offline] [--hide-filenames] [--exclude EXCLUDE]
|
||||
[--include INCLUDE] [--include-only-with-project-file]
|
||||
[--extra-heartbeats] [--log-file LOG_FILE] [--api-url API_URL]
|
||||
[--timeout TIMEOUT] [--config CONFIG] [--verbose] [--version]
|
||||
wakatime: error: argument --timeout: invalid int value: 'abc'
|
||||
|
|
|
@ -2,9 +2,10 @@ usage: wakatime [-h] [--entity FILE] [--key KEY] [--write] [--plugin PLUGIN]
|
|||
[--time time] [--lineno LINENO] [--cursorpos CURSORPOS]
|
||||
[--entity-type ENTITY_TYPE] [--proxy PROXY] [--no-ssl-verify]
|
||||
[--project PROJECT] [--alternate-project ALTERNATE_PROJECT]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME] [--disableoffline]
|
||||
[--hidefilenames] [--exclude EXCLUDE] [--include INCLUDE]
|
||||
[--extra-heartbeats] [--logfile LOGFILE] [--apiurl API_URL]
|
||||
[--language LANGUAGE] [--hostname HOSTNAME]
|
||||
[--disable-offline] [--hide-filenames] [--exclude EXCLUDE]
|
||||
[--include INCLUDE] [--include-only-with-project-file]
|
||||
[--extra-heartbeats] [--log-file LOG_FILE] [--api-url API_URL]
|
||||
[--timeout TIMEOUT] [--config CONFIG] [--verbose] [--version]
|
||||
|
||||
Common interface for the WakaTime api.
|
||||
|
@ -39,18 +40,21 @@ optional arguments:
|
|||
--language LANGUAGE optional language name; if valid, takes priority over
|
||||
auto-detected language
|
||||
--hostname HOSTNAME hostname of current machine.
|
||||
--disableoffline disables offline time logging instead of queuing
|
||||
--disable-offline disables offline time logging instead of queuing
|
||||
logged time
|
||||
--hidefilenames obfuscate file names; will not send file names to api
|
||||
--hide-filenames obfuscate filenames; will not send file names to api
|
||||
--exclude EXCLUDE filename patterns to exclude from logging; POSIX regex
|
||||
syntax; can be used more than once
|
||||
--include INCLUDE filename patterns to log; when used in combination
|
||||
with --exclude, files matching include will still be
|
||||
logged; POSIX regex syntax; can be used more than once
|
||||
--include-only-with-project-file
|
||||
disables tracking folders unless they contain a
|
||||
.wakatime-project file; defaults to false
|
||||
--extra-heartbeats reads extra heartbeats from STDIN as a JSON array
|
||||
until EOF
|
||||
--logfile LOGFILE defaults to ~/.wakatime.log
|
||||
--apiurl API_URL heartbeats api url; for debugging with a local server
|
||||
--log-file LOG_FILE defaults to ~/.wakatime.log
|
||||
--api-url API_URL heartbeats api url; for debugging with a local server
|
||||
--timeout TIMEOUT number of seconds to wait when sending heartbeats to
|
||||
api; defaults to 60 seconds
|
||||
--config CONFIG defaults to ~/.wakatime.cfg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue