Discover Packages
pkg.akt.dev/akt
internal
output
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jul 30, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Fprint formats and writes data to w in the given format.
Print formats and writes data to stdout in the given format.
PrintData is the unified output function for list commands.
For table format, it prints columns and rows as an aligned table.
For JSON/YAML, it serializes the structured data.
PrintTable writes rows as an aligned table.
type Column struct {
Header string
Width int
}
Column defines a table column.
Format represents an output format.
const (
FormatTable Format = "table"
FormatJSON Format = "json"
FormatYAML Format = "yaml"
)
FormatFromCmd reads the --output flag value from a cobra command.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.