Merge pull request #1157 from owncloud/enable_multiple_env_vars_in_docs
[docs-only] add multiple env vars to templates
This commit is contained in:
13 files changed
+40
-14
No files matched your search
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -45,6 +45,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -45,6 +45,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
--{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -24,7 +24,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{- range $o := $options }}{{ with (list $o $oName) -}}
|
{{- range $o := $options }}{{ with (list $o $oName) -}}
|
||||||
{{- $o := first . }}
|
{{- $o := first . }}
|
||||||
{{- if eq $o.FnName (last .) -}}
|
{{- if eq $o.FnName (last .) -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -54,6 +54,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
|||||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||||
{{ $o := last . -}}
|
{{ $o := last . -}}
|
||||||
{{ if eq $o.FnName $fnName -}}
|
{{ if eq $o.FnName $fnName -}}
|
||||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -41,6 +41,8 @@ So far we support the file formats `JSON` and `YAML`, if you want to get a full
|
|||||||
|
|
||||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||||
|
|
||||||
|
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||||
|
|
||||||
### Commandline flags
|
### Commandline flags
|
||||||
|
|
||||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||||
|
|||||||
Reference in new issue
Block a user