Merge pull request #4700 from marko1616/patch-1
Fix Windows command preview
This commit is contained in:
commit
555194e150
|
@ -113,6 +113,9 @@ def gen_cmd(args: Dict[str, Any]) -> str:
|
|||
for k, v in clean_cmd(args).items():
|
||||
cmd_lines.append(" --{} {} ".format(k, str(v)))
|
||||
|
||||
if os.name == "nt":
|
||||
cmd_text = "`\n".join(cmd_lines)
|
||||
else:
|
||||
cmd_text = "\\\n".join(cmd_lines)
|
||||
cmd_text = "```bash\n{}\n```".format(cmd_text)
|
||||
return cmd_text
|
||||
|
|
Loading…
Reference in New Issue