shared

package
v1.135.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package shared holds format helpers for deployment and environment subcommands.

Index

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

func DeploymentStateColor(ios *iostreams.IOStreams) func(string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL