I'm using click to create a CLI tool and need to prompt for a JSON payload. Is there a way to prompt for multiple lines using the following (or any other API)?
click.prompt(
"Payload",
type=click.STRING
)
Thanks!
I'm using click to create a CLI tool and need to prompt for a JSON payload. Is there a way to prompt for multiple lines using the following (or any other API)?
click.prompt(
"Payload",
type=click.STRING
)
Thanks!
I believe you're looking for the Click edit
API. Like it says in its documentation here:
This is very useful for asking users for multi-line input.