command/wip

This commit is contained in:
Marc Beninca 2024-09-14 18:07:01 +02:00
parent f4498f691c
commit 148f757d5d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -8,6 +8,11 @@ from rwx import txt
class Command: class Command:
"""Command to run.""" """Command to run."""
def __init__(self, *arguments: str | tuple[str, ...]) -> None:
"""Set raw & flat arguments."""
self.raw = arguments
self.flat: list[str] = []
def get_tuples_args(*items: str | tuple[str, ...]) -> list[str]: def get_tuples_args(*items: str | tuple[str, ...]) -> list[str]:
"""Turn arguments tuples into an arguments list.""" """Turn arguments tuples into an arguments list."""