mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
Add the restore command.
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
from .choose_prompt_port import ChoosePromptPort
|
||||
from .fzf_prompt import ChoosePromptFzf
|
||||
|
||||
__all__ = ['ChoosePromptPort', 'ChoosePromptFzf']
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class ChoosePromptPort(ABC):
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def choose(iterator) -> str:
|
||||
pass
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
from .choose_prompt_port import ChoosePromptPort
|
||||
from pyfzf import FzfPrompt
|
||||
|
||||
|
||||
class ChoosePromptFzf(ChoosePromptPort):
|
||||
@staticmethod
|
||||
def choose(iterator) -> str:
|
||||
fzf = FzfPrompt()
|
||||
return fzf.prompt(iterator)[0]
|
||||
Reference in New Issue
Block a user