Coverage for src/pyselector/__init__.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-24 11:53 -0300

1""" 

2A module for selecting options from a list using various menu implementations. 

3 

4Menus available: 

5- Rofi 

6- Dmenu (work-in-progress) 

7- Fzf (work-in-progress) 

8 

9Usage: 

10 

11options = ["a", "b", "c"] 

12menu = pyselector.Menu.rofi() 

13menu.keybind.add( 

14 key="alt-n", 

15 description="sort by recent", 

16 callback=lambda: None, 

17 hidden=False, 

18) 

19selected_option = menu.prompt(options) 

20 

21""" 

22 

23from .selector import Menu as Menu 

24 

25__version__ = "0.0.1"