Add methods to get all available menu options
This commit is contained in:
parent
f0e5b7bb58
commit
58455be58a
|
@ -118,6 +118,13 @@ class CliMenu:
|
|||
|
||||
return self._success
|
||||
|
||||
def get_options(self):
|
||||
return self._items
|
||||
|
||||
@property
|
||||
def num_options(self):
|
||||
return len(self._items)
|
||||
|
||||
def get_selection(self):
|
||||
if self.success:
|
||||
item = self._items[self._pos]
|
||||
|
|
Loading…
Reference in New Issue