Documentation
¶
Overview ¶
Package out writes context status as JSON or formatted text to command output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PersistStatusJSON ¶
PersistStatusJSON writes context status as JSON to the command output.
When verbose is true, includes content previews for each file.
Parameters:
- cmd: Cobra command for output stream
- ctx: Loaded context to display
- verbose: If true, include file content previews
Returns:
- error: Non-nil if JSON encoding fails
func PersistStatusText ¶
PersistStatusText writes context status as formatted text to the command output.
Parameters:
- cmd: Cobra command for output stream
- ctx: Loaded context to display
- verbose: If true, include detailed info and content previews
Returns:
- error: Always nil (included for interface consistency)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.