logs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogsCmd = &cobra.Command{
	Use:   "logs [flags]",
	Short: "View stack container logs",
	Long: `Display logs from containers in your deployed stack.
By default, shows the last 50 lines from all containers.
Use --service to filter logs from a specific service.`,
	RunE:         runLogs,
	SilenceUsage: true,
}

Functions

func RunNonInteractiveViewer added in v1.2.0

func RunNonInteractiveViewer(containers []ContainerLogs) error

RunNonInteractiveViewer displays logs in a simple format for non-interactive environments

func RunViewer

func RunViewer(containers []ContainerLogs) error

RunViewer starts the interactive logs viewer

Types

type ContainerLogs

type ContainerLogs struct {
	Name string
	Logs string
}

ContainerLogs holds logs for a single container

type LogsViewer

type LogsViewer struct {
	// contains filtered or unexported fields
}

LogsViewer represents the TUI model for viewing logs

func NewLogsViewer

func NewLogsViewer(containers []ContainerLogs) *LogsViewer

NewLogsViewer creates a new logs viewer

func (LogsViewer) Init

func (m LogsViewer) Init() tea.Cmd

Init implements the tea.Model interface

func (LogsViewer) Update

func (m LogsViewer) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements the tea.Model interface

func (LogsViewer) View

func (m LogsViewer) View() string

View implements the tea.Model interface

Jump to

Keyboard shortcuts

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