{{ $versionFromPath := index (split $.Page.File.Path "/") 1 }} {{ $isNextRelease := eq $versionFromPath "next-release" }} {{ $version := cond ($isNextRelease) site.Params.latest $versionFromPath }} {{ $data := index site.Data.cli $version }} {{ $config := index (index site.Data.cli $versionFromPath) "config" }} {{ if $isNextRelease }}

NOTE: This page is generated for version {{ $version }}.

{{ end }}

The CLI flags for the following binaries are documented below:

{{ range $config.tools }} {{ $tool := . }} {{ $cli := index $data $tool }} {{ $storage_types := index (index $config $tool) "storage" }}

{{ $tool }}

{{ $cli.description }}

{{ if gt (len $storage_types) 0 }}

{{ $tool }} can be used with these storage backends:

{{ range $storage_types }} {{ $storage := . }} {{ $file := printf "%s-%s" $tool $storage }} {{ $cli := index $data $file }}

{{ $tool }} with {{ $storage }} storage

{{ partial "options-table.html" $cli.options }} {{ end }} {{ else }} {{ partial "options-table.html" $cli.options }} {{ end }} {{ end }}