|
|
@ -23,6 +23,7 @@ from typing import List, Optional
|
|
|
|
import typer
|
|
|
|
import typer
|
|
|
|
|
|
|
|
|
|
|
|
from tui_rsync.models.models import Group
|
|
|
|
from tui_rsync.models.models import Group
|
|
|
|
|
|
|
|
from tui_rsync.models.models import all_group_labels
|
|
|
|
from tui_rsync.cli.groups.group_prompt import GroupPrompt
|
|
|
|
from tui_rsync.cli.groups.group_prompt import GroupPrompt
|
|
|
|
|
|
|
|
|
|
|
|
console = Console()
|
|
|
|
console = Console()
|
|
|
@ -46,3 +47,10 @@ def one(
|
|
|
|
group = Group.get_group(group_label)
|
|
|
|
group = Group.get_group(group_label)
|
|
|
|
group.delete_instance()
|
|
|
|
group.delete_instance()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@group_remove.command()
|
|
|
|
|
|
|
|
def all():
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
[red b]Remove[/] [yellow] all existing groups[/].
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
for label in all_group_labels().iterator():
|
|
|
|
|
|
|
|
one(label.label)
|
|
|
|