Added shelter and things needed for it (incomplete)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import questionary
|
||||
|
||||
|
||||
def clear():
|
||||
@@ -8,3 +9,23 @@ def clear():
|
||||
def title():
|
||||
clear()
|
||||
print("=== Whiskerbound ===\n")
|
||||
|
||||
|
||||
STYLE = questionary.Style(
|
||||
[
|
||||
("selected", "fg:cyan bold"),
|
||||
("pointer", "fg:cyan bold"),
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
def select(message, choices):
|
||||
return questionary.select(message, choices=choices, style=STYLE).ask()
|
||||
|
||||
|
||||
def text(message, default=""):
|
||||
return questionary.text(message, default=default, style=STYLE).ask()
|
||||
|
||||
|
||||
def confirm(message, default=True):
|
||||
return questionary.confirm(message, default=default, style=STYLE).ask()
|
||||
|
||||
Reference in New Issue
Block a user