commands

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidBackends = map[string]bool{
	"llama.cpp": true,
	"openai":    true,
}

ValidBackends is a map of valid backends

Functions

func NewRootCmd

func NewRootCmd(cli *command.DockerCli) *cobra.Command

func RawProgress

func RawProgress(message string)

func TUIProgress

func TUIProgress(message string)

func ValidBackendsKeys

func ValidBackendsKeys() string

Types

type CommandMetadata

type CommandMetadata struct {
	Parameters []ParameterMetadata `json:"parameters"`
}

type ParameterMetadata

type ParameterMetadata struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Required    bool   `json:"required"`
	Type        string `json:"type"`
	Default     string `json:"default,omitempty"`
}

type ProviderMetadata

type ProviderMetadata struct {
	Description string          `json:"description"`
	Up          CommandMetadata `json:"up"`
	Down        CommandMetadata `json:"down"`
}

type StreamingMarkdownBuffer

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

StreamingMarkdownBuffer handles partial content and renders complete markdown blocks

func NewStreamingMarkdownBuffer

func NewStreamingMarkdownBuffer() *StreamingMarkdownBuffer

NewStreamingMarkdownBuffer creates a new streaming markdown buffer

func (*StreamingMarkdownBuffer) AddContent

func (smb *StreamingMarkdownBuffer) AddContent(content string, shouldUseMarkdown bool) (string, error)

AddContent adds new content to the buffer and returns any content that should be displayed

func (*StreamingMarkdownBuffer) Flush

func (smb *StreamingMarkdownBuffer) Flush(shouldUseMarkdown bool) (string, error)

Flush renders and returns any remaining content in the buffer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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