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 `name:"write,w" usage:"write result to (source) file instead of stdout"` // PrintNames when enabled, will print formatted result of each file PrintNames bool `name:"list,l" ` }
FormatOpts
Click to show internal directories.
Click to hide internal directories.