(args)
| 128 | # Format a command so it can be copied into a shell. Like shlex.join, but also |
| 129 | # accepts arguments which are Paths, or a single string/Path outside of a list. |
| 130 | def join_command(args): |
| 131 | if isinstance(args, (str, Path)): |
| 132 | return str(args) |
| 133 | else: |
| 134 | return shlex.join(map(str, args)) |
| 135 | |
| 136 | |
| 137 | # Format the environment so it can be pasted into a shell. |
no test coverage detected
searching dependent graphs…