command/repr

This commit is contained in:
Marc Beninca 2024-09-15 02:02:36 +02:00
parent f8567686fd
commit 5a25c6df27
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -13,6 +13,10 @@ class Command:
self.raw = arguments self.raw = arguments
self.flat: list[str] = [] self.flat: list[str] = []
def __repr__(self) -> str:
"""Represent command."""
return f"Command({self.raw!r})"
def __str__(self) -> str: def __str__(self) -> str:
"""Return raw & flat.""" """Return raw & flat."""
return f"""\ return f"""\