I am trying to write a hook to format jsonnet files.
Goal is: If a changed file is *.jsonnet or *.libsonnet, then run jsonnetfmt -i <file_path>. (Assuming jsonnetfmt in the path)
What would be the best approach? I believe system language would work? Is there an example that could help me?
Thanks.
I am trying to write a hook to format jsonnet files.
Goal is: If a changed file is
*.jsonnetor*.libsonnet, then runjsonnetfmt -i <file_path>. (Assumingjsonnetfmtin the path)What would be the best approach? I believe
systemlanguage would work? Is there an example that could help me?Thanks.