Documentation ¶
Index ¶
- func ApplyGoTemplate(w io.Writer, outputFormat, goTemplate string, data any) error
- func BindFormatFlags(cmd *cobra.Command)
- func CompleteOutputFormat(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ConfigSectionKindName(cs types.ConfigSection) string
- func FilterOutEmptyMetadata(metadata types.CoreInstanceMetadata) ([]byte, error)
- func FmtDuration(d time.Duration) string
- func FmtTime(t time.Time) string
- func RenderCreated(w io.Writer, created types.Created) error
- func RenderCreatedTable(w io.Writer, createdID string, createdAt time.Time) error
- func RenderDeleted(w io.Writer, deleted types.Deleted) error
- func RenderEndpointsTable(w io.Writer, pp []types.PipelinePort, showIDs bool)
- func RenderUpdated(w io.Writer, updated types.Updated) error
- func RenderUpdatedTable(w io.Writer, updatedAt time.Time) error
- func RenderWithTemplating(w io.Writer, format OutputFormat, tmpl string, data any) error
- func ShouldApplyTemplating(fmt OutputFormat) (func(w io.Writer, tmpl string, data any) error, bool)
- func TemplateFromFlags(fs *pflag.FlagSet) string
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGoTemplate ¶
func BindFormatFlags ¶
func CompleteOutputFormat ¶
func ConfigSectionKindName ¶
func ConfigSectionKindName(cs types.ConfigSection) string
func FilterOutEmptyMetadata ¶
func FilterOutEmptyMetadata(metadata types.CoreInstanceMetadata) ([]byte, error)
func FmtDuration ¶
func RenderCreatedTable ¶
func RenderEndpointsTable ¶
func RenderEndpointsTable(w io.Writer, pp []types.PipelinePort, showIDs bool)
func RenderWithTemplating ¶
func ShouldApplyTemplating ¶
func TemplateFromFlags ¶
Types ¶
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatTable OutputFormat = "table" OutputFormatJSON OutputFormat = "json" OutputFormatYAML OutputFormat = "yaml" OutputFormatGoTmpl OutputFormat = "go-template" OutputFormatGoTmplFile OutputFormat = "go-template-file" )
func OutputFormatFromFlags ¶
func OutputFormatFromFlags(fs *pflag.FlagSet) OutputFormat
func (OutputFormat) String ¶
func (o OutputFormat) String() string
Click to show internal directories.
Click to hide internal directories.