|
|
@ -24,6 +24,7 @@ import typer
|
|
|
|
|
|
|
|
|
|
|
|
from tui_rsync.models.models import Source, Destination, SyncCommand, Path
|
|
|
|
from tui_rsync.models.models import Source, Destination, SyncCommand, Path
|
|
|
|
from tui_rsync.cli.label_prompt import LabelPrompt
|
|
|
|
from tui_rsync.cli.label_prompt import LabelPrompt
|
|
|
|
|
|
|
|
from tui_rsync.models.models import all_labels
|
|
|
|
|
|
|
|
|
|
|
|
console = Console()
|
|
|
|
console = Console()
|
|
|
|
source_remove = typer.Typer()
|
|
|
|
source_remove = typer.Typer()
|
|
|
@ -46,3 +47,10 @@ def one(
|
|
|
|
src = Source.get_source(label)
|
|
|
|
src = Source.get_source(label)
|
|
|
|
src.delete_instance()
|
|
|
|
src.delete_instance()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@source_remove.command()
|
|
|
|
|
|
|
|
def all():
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
[red b]Remove[/] [yellow] all existing sources[/].
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
for label in all_labels().iterator():
|
|
|
|
|
|
|
|
one(label.label)
|
|
|
|