kr8 format

Format jsonnet files in a directory. Defaults to ./

Synopsis

Formats jsonnet and libsonnet files. A list of files and/or directories. Defaults to current directory (./). If path is a directory, scans directories for files with matching extensions. Formats files with the following options: { Indent: 2, MaxBlankLines: 2, StringStyle: 0, CommentStyle: 1, PrettyFieldNames: true, PadArrays: false, PadObjects: true, SortImports: true, UseImplicitPlus: false, StripEverything: false, StripComments: false, StripAllButComments: false, }

kr8 format [flags] [files or directories]

Options

  -h, --help        help for format
  -r, --recursive   recursively explore the parameter directories

Options inherited from parent commands

  -B, --base string             kr8+ root configuration directory (default "./")
  -D, --clusterdir string       kr8+ cluster directory
      --color                   enable colorized output (default true)
  -d, --componentdir string     kr8+ component directory
      --config string           a single config file with kr8+ configuration
      --debug                   log additional information about what kr8+ is doing. Overrides --loglevel
      --ext-str-file key=file   set comma-separated jsonnet extVars from file contents in the format key=file
  -J, --jpath stringArray       additional jsonnet library directories
  -L, --loglevel string         set zerolog log level (default "info")
      --parallel int            parallelism - defaults to runtime.GOMAXPROCS(0) (default -1)
      --profiledir string       directory to write pprof profile data to

SEE ALSO

  • kr8 - A jsonnet-powered config management tool
Auto generated by spf13/cobra on 4-May-2025