Message function definition not working
See original GitHub issueThank you for this! It’s a lot of fun to work with! I tried creating a function for the message to return a string but functions for message doesn’t seem to be working (even though docs say otherwise).
def _confirm_options(answers):
message = "Confirm choices: " + str(answers)
return message
group_choices = [
{
"type": "input",
"name": "group_id",
"message": "Enter id of parent group",
},
{
"type": "input",
"name": "group_name",
"message": "Enter desired group name"},
{
"type": "confirm",
"name": "confirm",
"message": _confirm_options,
"default": True,
},
]
result is this: ? <function <lambda> at 0x10f287a60> (Y/n)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Function definition not found for a function declared inside ...
The solution to all this is very simple: when defining functions declared in the unnamed namespace, just reopen the namespace instead of trying ......
Read more >Please help! "Error: Function definitions are not permitted in ...
I'm extremely new to Matlab, and I'm working on a homework problem, and I keep coming up with an error... I've written my...
Read more >"Go to Definition" function is not working for C files #1175
Hello, I´m pretty new to VSCode (coming from Sublime 3) and I can not figure out how to get the "Go to Definition"...
Read more >Code Navigation in Visual Studio Code
Warnings and Errors can provide Code Actions (also known as Quick Fixes) to help fix issues. These will be displayed in the editor...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just ran into the same issue. Thanks @elyscape for showing the solution. It took about a minute to fix – now the hard part is just getting it pulled in lol. In the meanwhile, I’m using my own branch as a local package.
This project appears to be no longer active.