Skip to content

a hook for jsonnet formatting #1785

@gaurav517

Description

@gaurav517

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions