Loading src/tools/git_dashboard_panel.py +1 Changes for src/tools/git_dashboard_panel.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -246,6 +246,7 @@ def run_fzf( '--style', 'full', ], silent=False, stderr=False, ) Loading src/tools/tools.py +6 −2 Changes for src/tools/tools.py: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ class Tools: @staticmethod def run_output( command: list[str], silent: bool = True, stderr: bool = True, ) -> str: try: Loading @@ -51,11 +52,14 @@ class Tools: text=True, check=True, stdout=PIPE, stderr=PIPE if stderr else DEVNULL, stderr=PIPE if stderr else DEVNULL if silent else None, ) return str(result.stdout.strip()) except CalledProcessError as error: if stderr and error.stderr: if error.stderr: if not silent: print(error.stderr.strip()) if stderr: return str(error.stderr.strip()) return '' Loading Loading
src/tools/git_dashboard_panel.py +1 Changes for src/tools/git_dashboard_panel.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -246,6 +246,7 @@ def run_fzf( '--style', 'full', ], silent=False, stderr=False, ) Loading
src/tools/tools.py +6 −2 Changes for src/tools/tools.py: 6 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ class Tools: @staticmethod def run_output( command: list[str], silent: bool = True, stderr: bool = True, ) -> str: try: Loading @@ -51,11 +52,14 @@ class Tools: text=True, check=True, stdout=PIPE, stderr=PIPE if stderr else DEVNULL, stderr=PIPE if stderr else DEVNULL if silent else None, ) return str(result.stdout.strip()) except CalledProcessError as error: if stderr and error.stderr: if error.stderr: if not silent: print(error.stderr.strip()) if stderr: return str(error.stderr.strip()) return '' Loading