star tracker commands
This commit is contained in:
@@ -12,17 +12,16 @@ LOGGER = get_console_logger()
|
||||
|
||||
|
||||
class InputHelper:
|
||||
|
||||
def __init__(self, menu: dict):
|
||||
"""
|
||||
@brief Constructor
|
||||
@param menu The describing the input options
|
||||
@param menu The menu describing the input options
|
||||
"""
|
||||
self.menu = menu
|
||||
|
||||
def get_key(self) -> str:
|
||||
"""
|
||||
@brief Ask the user for input and returns the chosen key
|
||||
@brief Asks the user for input and returns the chosen key
|
||||
"""
|
||||
key = self.menu_handler()
|
||||
while key not in self.menu:
|
||||
@@ -45,5 +44,3 @@ class InputHelper:
|
||||
LOGGER.info(f"{key_string} | {description_string}")
|
||||
key = input("Specify key: ")
|
||||
return key
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user