gui.model.display_command

gui.model.display_command(argv)

The command line to show under a button and to copy.

Parameters

Name Type Description Default
argv Sequence[str] The arguments from cli_argv. required

Returns

Name Type Description
str str spotregen followed by the arguments, quoted for a POSIX shell.

Examples

from spotregen.gui.model import display_command

print(display_command(["--root", "/my repo", "status"]))
spotregen --root '/my repo' status