From 5038e587af65449a7f674be2da7849a8c8d7ab6f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 15 Sep 2024 01:45:06 +0200 Subject: [PATCH] command/str --- rwx/ps/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rwx/ps/__init__.py b/rwx/ps/__init__.py index 3ea9702..7f21c5d 100644 --- a/rwx/ps/__init__.py +++ b/rwx/ps/__init__.py @@ -13,6 +13,13 @@ class Command: self.raw = arguments self.flat: list[str] = [] + def __str__(self) -> str: + """Return raw & flat.""" + return f"""\ + raw = {self.raw} +flat = {self.flat} +""" + def get_tuples_args(*items: str | tuple[str, ...]) -> list[str]: """Turn arguments tuples into an arguments list."""