Documentation
¶
Overview ¶
Package modes provides the four mode implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCHandler ¶
GRPCHandler starts a gRPC server exposing the AgentService.
func (*GRPCHandler) Run ¶
func (h *GRPCHandler) Run(_ []string) error
type Handler ¶
Handler is the interface for mode implementations.
func NewGRPCHandler ¶
NewGRPCHandler creates a GRPCHandler.
func NewInteractiveHandler ¶
func NewInteractiveHandler(client pb.AgentServiceClient, sessionID string, cfg *config.Config, theme string, opts interactive.Options) Handler
NewInteractiveHandler creates an interactive mode handler.
func NewPrintHandler ¶
func NewPrintHandler(client pb.AgentServiceClient, sessionID string, opts PrintOptions) Handler
NewPrintHandler creates a print mode handler.
type InteractiveHandler ¶
type InteractiveHandler struct {
Client pb.AgentServiceClient
SessionID string
Config *config.Config
Theme string
Options interactive.Options
}
InteractiveHandler handles interactive mode (bubbletea TUI).
func (*InteractiveHandler) Run ¶
func (h *InteractiveHandler) Run(args []string) error
type PrintHandler ¶
type PrintHandler struct {
Client pb.AgentServiceClient
SessionID string
Options PrintOptions
}
PrintHandler handles print mode (single-shot output).
func (*PrintHandler) Run ¶
func (h *PrintHandler) Run(args []string) error
Click to show internal directories.
Click to hide internal directories.