summaryrefslogtreecommitdiff
path: root/vendor/github.com/manifoldco/promptui/styles.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-10-07 16:58:53 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-11-13 15:40:06 +0100
commit8e4a42aa429c6dec0d5face7c69554d8a0677e96 (patch)
treebbfff77e7b32a8b46af6f57d42965a7751bec18e /vendor/github.com/manifoldco/promptui/styles.go
parent0b1a60ec27928a40ac827148c1517098612616bd (diff)
downloadpodman-8e4a42aa429c6dec0d5face7c69554d8a0677e96.tar.gz
podman-8e4a42aa429c6dec0d5face7c69554d8a0677e96.tar.bz2
podman-8e4a42aa429c6dec0d5face7c69554d8a0677e96.zip
short-name aliasing
Add support for short-name aliasing. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/github.com/manifoldco/promptui/styles.go')
-rw-r--r--vendor/github.com/manifoldco/promptui/styles.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/manifoldco/promptui/styles.go b/vendor/github.com/manifoldco/promptui/styles.go
new file mode 100644
index 000000000..d7698c9cf
--- /dev/null
+++ b/vendor/github.com/manifoldco/promptui/styles.go
@@ -0,0 +1,23 @@
+// +build !windows
+
+package promptui
+
+// These are the default icons used by promptui for select and prompts. These should not be overridden and instead
+// customized through the use of custom templates
+var (
+ // IconInitial is the icon used when starting in prompt mode and the icon next to the label when
+ // starting in select mode.
+ IconInitial = Styler(FGBlue)("?")
+
+ // IconGood is the icon used when a good answer is entered in prompt mode.
+ IconGood = Styler(FGGreen)("✔")
+
+ // IconWarn is the icon used when a good, but potentially invalid answer is entered in prompt mode.
+ IconWarn = Styler(FGYellow)("⚠")
+
+ // IconBad is the icon used when a bad answer is entered in prompt mode.
+ IconBad = Styler(FGRed)("✗")
+
+ // IconSelect is the icon used to identify the currently selected item in select mode.
+ IconSelect = Styler(FGBold)("▸")
+)