Is there a method to get a user input with a variable from the user input?
I don't even know how to describe it.
Consider this.
I want to have a user input a string and within that string have a variable.
user_defined_command_input = "config ap {ap_name} {old_ap_name}"
The idea is, instead of me generating a template for every possible command, they can generate the command template using string interpolation without having to know python. The idea is that they have a list of commands generated for hundreds of devices and they get to manage the template of the commands they need.
user_defined_command_input = "config ap {new_AP_name} {mac_address} {description}"
OR
user_defined_command_input = "config description {short_description}
Since they should be able to name their own variables, I can't hardcode them. I understand that there are security risks with unsanitized code being injected. So I would love to learn about that too.