Thanks to visit codestin.com
Credit goes to github.com

Skip to content

y1hao/go-jsonnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonnet-tracer

This is a fork of http://github.com/google/go-jsonnet. In this fork I've added a command, jsonnet-trace, that helps to trace each property in the built JSON outcome back to its original input file location.

Installation

$ go install github.com/y1hao/go-jsonnet/cmd/jsonnet-trace@latest

Usage

$ jsonnet-trace <root_file.jsonnet>

For example

$ jsonnet-trace examples/bazel/testdata/demo/sours-oo.jsonnet

will build the sours-oo.jsonnet file (including its imports with relative paths), and will show the outcome json content as the following:

The original source file and line number where the property in the highlighted line is set or last modified is displayed on the top.

About

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.5%
  • Jsonnet 0.7%
  • Python 0.3%
  • C 0.3%
  • Starlark 0.2%
  • Shell 0.0%