output

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(cmd *cobra.Command, response *dto.CLIResponse)

Print outputs the CLIResponse in the format specified by the --format flag.

func PrintError

func PrintError(cmd *cobra.Command, code string, message string, meta *dto.CLIMeta)

PrintError is a convenience function for error responses.

func PrintSuccess

func PrintSuccess(cmd *cobra.Command, data interface{}, meta *dto.CLIMeta)

PrintSuccess is a convenience function for successful responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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