From 5a25c6df27b8be0530f286a27d29e7db55c7f359 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 15 Sep 2024 02:02:36 +0200 Subject: [PATCH] command/repr --- rwx/ps/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rwx/ps/__init__.py b/rwx/ps/__init__.py index 7f21c5d..54d58cf 100644 --- a/rwx/ps/__init__.py +++ b/rwx/ps/__init__.py @@ -13,6 +13,10 @@ class Command: self.raw = arguments self.flat: list[str] = [] + def __repr__(self) -> str: + """Represent command.""" + return f"Command({self.raw!r})" + def __str__(self) -> str: """Return raw & flat.""" return f"""\