mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #342] [MERGED] Gauge threshold #341
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#341
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/342
Author: @lovromazgon
Created: 12/8/2022
Status: ✅ Merged
Merged: 1/8/2023
Merged by: @mum4k
Base:
devel← Head:gauge-threshold📝 Commits (6)
f13e422Merge pull request #317 from mum4k/release-0-16-19954a05Merge pull request #331 from mum4k/release_v0.17.01aba280add gauge threshold6e46b73refactor drawing of gauge threshold9beb360return error if gauge threshold is negativebc37cb7more gauge threshold tests📊 Changes
4 files changed (+214 additions, -7 deletions)
View changed files
📝
widgets/gauge/gauge.go(+38 -5)📝
widgets/gauge/gauge_test.go(+153 -2)📝
widgets/gauge/gaugedemo/gaugedemo.go(+2 -0)📝
widgets/gauge/options.go(+21 -0)📄 Description
This PR introduces the option
gauge.Thresholdwhich allows you to draw a vertical line on a gauge representing a threshold. If the gauge is drawn with a border the threshold is drawn over the border, otherwise it's only drawn within the gauge itself. The threshold is only drawn if its value is within the gauge (greater than 0 and less thang.total).I took the liberty to change the demo to draw a threshold on two of the gauges.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.