Skip to content

Commit

Permalink
A style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Dec 31, 2023
1 parent 2a73e1a commit 4030659
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plano/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def __call__(self, *args, **kwargs):

app.running_commands.append(self)

dashes = "--- " * (len(app.running_commands) - 1)
dashes = "----" * (len(app.running_commands) - 1)
display_args = list(self._get_display_args(args, kwargs))

with console_color("magenta", file=_sys.stderr):
Expand All @@ -432,6 +432,9 @@ def __call__(self, *args, **kwargs):

self.function(*args, **kwargs)

if dashes:
dashes = dashes[:-1] + " "

cprint("{}<-- {}".format(dashes, self.name), color="magenta", file=_sys.stderr)

app.running_commands.pop()
Expand Down

0 comments on commit 4030659

Please sign in to comment.