status

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: 5 Imported by: 0

Documentation

Overview

Package status provides terminal output functions for the status command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusActivity

func StatusActivity(cmd *cobra.Command, entries []StatusActivityInfo)

StatusActivity prints the recent activity section.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • entries: Recent activity entries.

func StatusFileItem

func StatusFileItem(cmd *cobra.Command, f StatusFileInfo, verbose bool)

StatusFileItem prints a single file entry in the status list.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • f: Prepared file info.
  • verbose: If true, include tokens, size, and preview.

func StatusHeader

func StatusHeader(cmd *cobra.Command, dir string, fileCount, totalTokens int)

StatusHeader prints the status heading and summary block.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • dir: Context directory path.
  • fileCount: Number of context files.
  • totalTokens: Estimated total token count.

Types

type StatusActivityInfo

type StatusActivityInfo struct {
	Name string
	Ago  string
}

StatusActivityInfo holds prepared data for a recent activity entry.

type StatusFileInfo

type StatusFileInfo struct {
	Indicator string
	Name      string
	Status    string
	Tokens    int
	Size      int64
	Preview   []string
}

StatusFileInfo holds prepared data for a single file in status output.

Jump to

Keyboard shortcuts

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