mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
(Added) remove all option for groups.
This commit is contained in:
@@ -23,6 +23,7 @@ from typing import List, Optional
|
||||
import typer
|
||||
|
||||
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
|
||||
|
||||
console = Console()
|
||||
@@ -46,3 +47,10 @@ def one(
|
||||
group = Group.get_group(group_label)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user