nomad
nomad copied to clipboard
show embedded template diffs line-by-line
Hi team,
I’ve developed a proof of concept for displaying template differences in the job plan output. Instead of modifying the API fields, I handled the changes directly in the client. Specifically, I added a conditional check in the final step where the field is edited. This check determines whether the field name is EmbeddedTmpl and, if so, utilizes a library to display the diff.
I’d appreciate your feedback on this approach. Do you agree with handling the diff in both the command-line interface and the web UI, or would you prefer modifying the API instead? Additionally, are there any other suggestions or improvements you would recommend?
Thank you for your time.
#23603