funkwlmpv/funkwhale_cli.py

20 lines
351 B
Python
Raw Normal View History

2022-11-01 12:15:28 +02:00
from src.fw_radios import list_radios
from loguru import logger
2022-11-01 12:15:28 +02:00
from pyfzf.pyfzf import FzfPrompt
fzf = FzfPrompt()
def main():
logger.remove()
2022-11-01 12:15:28 +02:00
while True:
menu = ('Radios', )
ids = fzf.prompt(menu)
selected = ids[0]
if selected == 'Radios':
list_radios()
if __name__ == '__main__':
main()