simplelogincmd.cli.util.input.edit¶
- edit(msg: str | None = None, *args, **kwargs) str | None¶
Allow the user to enter a message via their editor of choice
- Parameters:
message (str, optional) – Default message to show in the temporary file. If not given,
EDITOR_DEFAULT_MESSAGEis used, defaults to Noneargs – Passed directly on to
click.edit()kwargs – Passed directly on to
click.edit()
- Returns:
The message entered, with all commented lines removed, or None if the user enters a blank message
- Return type:
str|None