Documentation
¶
Overview ¶
Package shared holds format helpers for deployment and environment subcommands.
Index ¶
- Constants
- func DeploymentFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.Deployment]
- func DeploymentStateColor(ios *iostreams.IOStreams) func(string) string
- func DisplayEnvVariableValue(v backend.EnvVariable) string
- func EnvVariableFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.EnvVariable]
- func EnvironmentFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.Environment]
Constants ¶
View Source
const SecuredPlaceholder = "<secured>"
SecuredPlaceholder is rendered in place of a secured env variable value.
Variables ¶
This section is empty.
Functions ¶
func DeploymentFields ¶
func DeploymentFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.Deployment]
DeploymentFields constructs the formatter for deployment list/view.
func DeploymentStateColor ¶
DeploymentStateColor maps Bitbucket Cloud deployment state strings to colors.
func DisplayEnvVariableValue ¶
func DisplayEnvVariableValue(v backend.EnvVariable) string
DisplayEnvVariableValue redacts secured env variable values for TTY output.
func EnvVariableFields ¶
func EnvVariableFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.EnvVariable]
EnvVariableFields constructs the formatter for environment variable list.
func EnvironmentFields ¶
func EnvironmentFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.Environment]
EnvironmentFields constructs the formatter for environment list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.