-
Notifications
You must be signed in to change notification settings - Fork 7
Description
@leex279 FYI, I'm playing around with adding support for Token Variables. Basically, adding the ability to manage placeholders within the codeblocks so you can add things like IP, username, etc to the definition of the tasks and as a user is using the tasks, the user can give their values for the tokens. This way as they are going through the tasks, they are copying commands without placeholders.
For example, let's say there is a code block where you would add a new user. Instead of having a code block like this
sudo adduser <username>
You would use something like this
sudo adduser %%username%%
Then, when a user uses the tasks, there's a button to merge the Token Variables. This button would trigger a modal allowing the user to specify values for all of the tokens. There's a Merge button in the modal and when the user clicks it, the display of the code blocks is updated to use the a code block like this
sudo adduser johndoe
I'm not 100% sold on the UI I've built so far, but I do have something that works. I'm going to keep playing with it, to see if I can streamline it a bit more, but I'm curious if you have any thoughts about the concept.