cli

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via ldflags

Functions

This section is empty.

Types

type App

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

App represents the CLI application

func NewApp

func NewApp(cfg *config.Config) *App

NewApp creates a new CLI application

func (*App) Run

func (a *App) Run(args []string) error

Run executes the CLI application

type PreviewManager added in v1.1.0

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

PreviewManager handles image previews in terminal

func NewPreviewManager added in v1.1.0

func NewPreviewManager() *PreviewManager

NewPreviewManager creates a new preview manager

func (*PreviewManager) CanPreview added in v1.1.0

func (pm *PreviewManager) CanPreview() bool

CanPreview returns true if image preview is available

func (*PreviewManager) DisplayImageInfo added in v1.1.0

func (pm *PreviewManager) DisplayImageInfo(imagePath string)

DisplayImageInfo shows basic information about an image file

func (*PreviewManager) GetAvailableToolName added in v1.1.0

func (pm *PreviewManager) GetAvailableToolName() string

GetAvailableToolName returns the name of the available preview tool

func (*PreviewManager) InstallInstructions added in v1.1.0

func (pm *PreviewManager) InstallInstructions() string

InstallInstructions provides installation instructions for preview tools

func (*PreviewManager) PreviewImage added in v1.1.0

func (pm *PreviewManager) PreviewImage(imagePath string) error

PreviewImage displays an image preview in the terminal

type PreviewTool added in v1.1.0

type PreviewTool int

PreviewTool represents available preview tools

const (
	PreviewToolKitty PreviewTool = iota // Kitty graphics protocol (highest quality)
	PreviewToolSixel                    // Sixel graphics (high quality)
	PreviewToolChafa                    // Chafa (good quality, widely supported)
	PreviewToolViu                      // Viu (basic quality)
	PreviewToolNone                     // No preview available
)

Jump to

Keyboard shortcuts

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