Commit graph

104 commits

Author SHA1 Message Date
Stephen Judd f6ec503bbf
feat: add Google Cloud (gcp) segment 2022-08-17 18:12:18 +02:00
Jan De Dobbeleer 698cbc4135 fix(sysinfo): validate array before assignment
resolves #2672
2022-08-17 13:43:46 +02:00
Jan De Dobbeleer 32f1977bdc
feat(wakatime): parse url as template 2022-08-16 20:55:08 +02:00
Jan De Dobbeleer 5502acb585 feat(nx): show segment on nx.json presence 2022-08-13 13:41:28 +02:00
Jan De Dobbeleer 929e460c4e refactor(ipify): use generic http request 2022-08-05 22:26:27 +02:00
Jan De Dobbeleer cccb502989 refactor: do generic http request 2022-08-05 22:26:27 +02:00
eduardo e307b2f706 feat(ipfy): add offline response 2022-08-05 12:59:55 +02:00
Jan De Dobbeleer 5f063e80f3 chore(lint): nolint should be written without leading space 2022-08-05 08:38:17 +02:00
Piotr Kalinowski a2533c8f5b fix(git): better cross-platform path resolution and tests
The simple filepath.IsAbs() is not enough on Windows, where the relative
path may start with a separator and should then be taken relative to the
volume name.

So, introduce resolveGitPath() helper function that will do the right
thing on both Windows and other systems. As a bonus, it returns paths
converted to slashes for ease of use with the rest of the git segment:
- Git for Windows uses only slashes.
- Slashes do work as a path separator on Windows anyway.
- Some tests in git segment still use (and rightfully so) slashes.

Add tests for resolveGitPath() on both types of systems and fix
TestEnableInWorktree using a system-dependent testing constant as a root
path.
2022-08-03 18:20:00 +02:00
Piotr Kalinowski 3895210ab3 fix(git): further fixes for submodule worktrees
filepath.Join() just concatenates paths. We have to check manually for
an absolute path and discard the first component to end up with the
correct path.

Also, fix the tests to demonstrate actual behaviour of git, not what
filepath.Join() was doing.

Additionally, note that on Windows git paths in gitdir use unix
separators, so search for `/worktrees/` instead of using system
separator, just like when processing all the other cases.
2022-08-03 18:20:00 +02:00
Jan De Dobbeleer 47265b1bc1 fix(path): map Parent correctly 2022-08-03 18:03:04 +02:00
Jan De Dobbeleer 18e23f93a8 chore: rename platform variables 2022-08-03 18:03:04 +02:00
Jan De Dobbeleer 79e76c8f3f feat(path): get parent folder 2022-08-01 07:36:28 +02:00
Jan De Dobbeleer 9238f3adbf feat(owm): correct data type for temperature
resolves #2591
2022-07-29 13:44:38 +02:00
Jan De Dobbeleer c22d0d67be fix(python): do not clear virtualenv in pyenv
resolves #2582
2022-07-28 08:04:37 +02:00
Jan De Dobbeleer 0bdad6fa95 fix(language): do not fail on first error
resolves #2569
2022-07-27 07:37:36 +02:00
Jan De Dobbeleer b5b35d1456 fix(python): do not stop at pyenv fail
adds more logging for #2569
2022-07-26 07:36:25 +02:00
Jan De Dobbeleer 729858377b fix(withings): calculate total sleep time 2022-07-22 20:46:56 +02:00
Jan De Dobbeleer 7029013fd8 fix(withings): pick today's steps 2022-07-22 20:46:56 +02:00
Jan De Dobbeleer 8426f81e71 feat(executiontime): add galvestonms
resolves #2494
2022-07-21 13:43:02 +02:00
Jan De Dobbeleer a4ef99acdb feat(command): run script
resolves #2556
2022-07-21 10:47:16 +02:00
Jan De Dobbeleer b34f8bbbf3 fix(withings): remove parallel execution
resolves #2551
2022-07-21 10:47:16 +02:00
jedwillick f37e5767c2 feat: add lua segment 2022-07-20 12:42:44 +02:00
jedwillick 4f48c2b0d1 feat(language): expose executable and allow different URL templates 2022-07-20 12:42:44 +02:00
Jan De Dobbeleer 2ec6b085fd feat: withings segment 2022-07-20 07:40:51 +02:00
Jan De Dobbeleer e5bf5db9c2 refactor: extract OAuth logic 2022-07-20 07:40:51 +02:00
Kushal-Chandar 3a8907c48e feat(segment): added cmake segment 2022-07-15 13:38:34 +02:00
Jan De Dobbeleer f2ccee6df6 fix(git): support submodules woth worktrees
resolves #2514
2022-07-14 20:18:45 +02:00
Jan De Dobbeleer 375a901ca0 docs(withings): correct url 2022-07-12 20:53:09 +02:00
Michael Carman 43fee03fcb
feat: perl segment 2022-07-08 12:21:08 +02:00
Jan De Dobbeleer 17857db340 feat: include battery lib
resolves #2479
2022-07-05 21:13:25 +02:00
Jan De Dobbeleer 37a4c3eb4e feat(git): expose repo name 2022-07-01 13:19:06 +02:00
Jan De Dobbeleer 718ce22682 feat(git): set ignore-submodules flag
resolves #2455
2022-06-30 18:13:08 +02:00
Jan De Dobbeleer dc851fcf53 feat(git): override untracked mode for all repo's
resolves #2454
2022-06-30 18:13:08 +02:00
Jan De Dobbeleer c59c876b87 fix(az): do not use env var for module
resolves #2436
2022-06-25 19:47:16 +02:00
Jan De Dobbeleer b22dd21fa5 feat(winreg): additional value support 2022-06-07 07:09:32 +02:00
Jan De Dobbeleer d1501a6211 feat: fossil segment
resolves #2373
2022-06-05 16:41:35 +02:00
Jan De Dobbeleer 56987bf63a fix(git): add untracked to status
relates to #2349
2022-05-30 20:15:22 +02:00
Jan De Dobbeleer 8bcbe02510 fix(git): add untracked
resolves #2349
2022-05-30 08:59:22 +02:00
Dave Moor a9c1292d83 feat: add svn segment 2022-05-30 08:59:22 +02:00
evanfuture a4e8bc1b60 feat: nx segment 2022-05-27 17:52:08 +02:00
Jan De Dobbeleer c729788676 feat: flutter segment
resolves #2310
2022-05-24 10:31:40 +02:00
Jan De Dobbeleer 8c43438340 fix(az): validate config dir before continuing
resolves #2280
2022-05-17 08:54:30 +02:00
L. Yeung 0e4898d875 docs(segments): revise properties of language segments 2022-05-16 18:08:43 +02:00
Jan De Dobbeleer 48707504cd feat(path): add Writable
resolves #2269
2022-05-16 07:45:12 +02:00
Jan De Dobbeleer 6462607178 feat(path): template for path separator 2022-05-12 20:49:37 +02:00
Jan De Dobbeleer 69ae95affc feat(debug): expose Log via environment 2022-05-12 20:49:37 +02:00
Jan De Dobbeleer e392ab667d feat(battery): decouple not charging from discharging
resolves #2237
2022-05-10 07:44:03 +02:00
Jan De Dobbeleer 5f19315a66 fix(r): parse 4.2.0 correctly
resolves #2229
2022-05-06 20:24:00 +02:00
Jan De Dobbeleer 482c997413 feat: reference segments properties cross segment
resolves #2208
2022-05-06 12:28:48 +02:00