Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFiles ¶
func FormatFiles(ctx context.Context, files []string, opt FormatOpts) error
FormatFiles format jsonnet files
Types ¶
type FormatOpts ¶
type FormatOpts struct { // ReplaceFile when enabled, will write formatted code to same file ReplaceFile bool `flag:"write,w" desc:"write result to (source) file instead of stdout"` // PrintNames when enabled, will print formatted result of each file PrintNames bool `flag:"list,l" ` }
FormatOpts
Click to show internal directories.
Click to hide internal directories.