Documentation
¶
Overview ¶
Package shared holds format helpers for variable subcommands.
Index ¶
- Constants
- func DisplayEnvVariableValue(v backend.EnvVariable) string
- func DisplayVariableValue(v backend.PipelineVariable) string
- func EnvVariableFields(f *factory.Factory, jsonFields, jqExpr string) *format.Printer[backend.EnvVariable]
- func VariableFields(f *factory.Factory, jsonFields, jqExpr string) *format.Printer[backend.PipelineVariable]
Constants ¶
View Source
const SecuredPlaceholder = "<secured>"
SecuredPlaceholder is rendered in TTY tables in place of a secured variable's value.
Variables ¶
This section is empty.
Functions ¶
func DisplayEnvVariableValue ¶
func DisplayEnvVariableValue(v backend.EnvVariable) string
DisplayEnvVariableValue redacts secured env variable values for TTY output.
func DisplayVariableValue ¶
func DisplayVariableValue(v backend.PipelineVariable) string
DisplayVariableValue redacts secured pipeline variable values for TTY output.
func EnvVariableFields ¶
func EnvVariableFields(f *factory.Factory, jsonFields, jqExpr string) *format.Printer[backend.EnvVariable]
EnvVariableFields constructs the formatter for deployment scope variable lists (EnvVariable). Secured values are redacted in both TTY and JSON paths.
func VariableFields ¶
func VariableFields(f *factory.Factory, jsonFields, jqExpr string) *format.Printer[backend.PipelineVariable]
VariableFields constructs the formatter for repository and workspace scope variable lists (PipelineVariable). Secured values are redacted via DisplayVariableValue in both TTY and JSON output paths.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.