Commit graph

28 commits

Author SHA1 Message Date
Jan De Dobbeleer 9e7abe4541 refactor: move segments to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 4e17e4a853 refactor: public interface for segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 59756813d3 refactor: naming standard for segments 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer bdd13cb32f refactor: move properties logic to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer c86b7b62bc refactor: move color logic to module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 906ece2af9 refactor: move environment into it's own module 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer f7a07c6b62 refactor(segments): string() to template()
moves templating engine to Segment
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 0987cafad0 refactor: remove deprecated functionality 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer e1f50ef885 refactor: rename environmentInfo 2022-01-01 20:22:52 +01:00
Jan De Dobbeleer 29e019511a refactor: move properties to interface 2022-01-01 20:22:52 +01:00
Jan De Dobbeleer 09df670e07 refactor: use properties as map type 2021-11-26 11:11:07 +01:00
Jan De Dobbeleer b94e96dd15 refactor(battery): remove legacy properties 2021-11-25 13:59:36 +01:00
Jan De Dobbeleer fa38b516b1 refactor(battery): use struct inheritance 2021-11-25 13:59:36 +01:00
Jan De Dobbeleer b2515650c1 fix(battery): map battery behavior before returning 2021-09-20 07:19:01 +02:00
Jan De Dobbeleer e1be81e658 fix(battery): skip nil value batteries 2021-09-18 20:09:11 +02:00
lnu cb9a090ec7 feat(battery): display_charged parameter added
display_charging splitted to two parameters instead of a single one

BREAKING CHANGE: from now display_charging will handle the charging
                 status only.
2021-09-16 20:17:41 +02:00
Jan De Dobbeleer 79fa990205 feat: env vars in templates
resolves #743
2021-05-27 22:06:33 +02:00
Jan De Dobbeleer 3b56c24b69 fix: add not charging state for battery info 2021-05-27 12:50:53 +02:00
lnu 44ac09d356 fix(battery): disable segment when no batteries 2021-04-22 07:02:22 +02:00
Jan De Dobbeleer 212721c9e3 fix(battery): better state mapping
relates to #644
2021-04-16 07:54:05 +02:00
Jan De Dobbeleer 92a2f740e9 refactor: move battery logic to segment 2021-04-16 07:54:05 +02:00
Jan De Dobbeleer 90680f2c70 fix(battery): hide segment when no batteries
resolves #633
2021-04-12 19:17:58 +02:00
Jan De Dobbeleer 2990bc2536 fix: return error on template render 2021-04-11 15:27:20 +02:00
Jan De Dobbeleer 57d49658ea feat(battery): use template to render segment 2021-03-28 16:22:29 +02:00
Jan De Dobbeleer 507906009d feat(battery): support color templates
relates to #376
2021-02-15 23:23:44 +01:00
TravisTX acfda5c9ca feat: add display_error to kubectl 2021-02-12 22:14:58 +01:00
lnu c57368ce7d fix: avoid crash on system with no battey in battery segment 2021-01-05 13:06:54 +01:00
Jan De Dobbeleer ed2eac8e12 feat: adjust source code layout 2020-12-25 20:11:24 +01:00
Renamed from segment_battery.go (Browse further)