out

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

func PersistStatusJSON(
	cmd *cobra.Command, ctx *entity.Context, verbose bool,
) error

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

func PersistStatusText(
	cmd *cobra.Command, ctx *entity.Context, verbose bool,
) error

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.

Jump to

Keyboard shortcuts

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