Skip to content

Commit

Permalink
Inline for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
evolutics committed Apr 6, 2024
1 parent a29f095 commit d57de37
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions travelkit/readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,12 @@ def _file_pattern_entry(file_patterns):


def _command_entry(command):
humanized_command = _humanize_command(command)
humanized_command = " ".join(
("…" if pathlib.Path(argument).is_absolute() else shlex.quote(argument))
for argument in command[1:]
)
return f"""Command:
```bash
{humanized_command}
```"""


def _humanize_command(command):
return " ".join(
("…" if pathlib.Path(argument).is_absolute() else shlex.quote(argument))
for argument in command[1:]
)

0 comments on commit d57de37

Please sign in to comment.