wf resolve
wf resolve
Resolves a template value from a Wayfinder package or application environment context
Synopsis
Compiles the provided template string (or file) in the context of a specified package or application.
You can use this command while preparing new templates in order to understand the values that will be produced when the template is used, or to understand the types of values you will get back from the template context.
NOTE: use: "wf describe var" to see what type of data you will get.
wf resolve [flags]
Examples
# General usage:
# Resolve a template value for an package:
$ wf resolve "{{ .Path.To.Value }}" --package PACKAGE --cluster CLUSTER [-w workspace]
# Resolve a template value for an package component from file:
$ wf resolve -f ./path.to.template --package PACKAGE --cluster CLUSTER [-w workspace]
# Write the template output to file using the --out flag:
$ wf resolve "{{ .Path.To.Value }}" --package PACKAGE --cluster CLUSTER --out ./path.to.output [-w workspace]
# Resolve a template value for an application component:
$ wf resolve "{{ .Path.To.Value }}" --component COMPONENT --env APPENV [-w workspace]
# Resolve a template value for an application component from file:
$ wf resolve -f ./path.to.template --component COMPONENT --env APPENV [-w workspace]
# Write the template output to file using the --out flag:
$ wf resolve "{{ .Path.To.Value }}" --component COMPONENT --env APPENV --out ./path.to.output [-w workspace]