nomad icon indicating copy to clipboard operation
nomad copied to clipboard

show embedded template diffs line-by-line

Open amirabbas8 opened this issue 6 months ago • 2 comments

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.

Screenshot CMD Screenshot Web

#23603

amirabbas8 avatar Aug 22 '24 07:08 amirabbas8