Wrap
wrap_code_block¶
Format a long command into multi-line with vertically aligned backslash continuations. Each flag/option starting with ' -' is placed on its own line, indented by two spaces. Backslash continuations are right-aligned to the longest line.
Example¶
wrap_code_block aws s3api copy-object --bucket foo --key bar
Arguments¶
- ... (string): The command string to wrap
Exit codes¶
- 0: Always
Output on stdout¶
- Multi-line command with aligned backslash continuations