Documentation
¶
Overview ¶
Package cli implements the command-line interface for miru.
The cli package provides: - Command-line argument parsing and validation - Terminal output formatting - Man-like interface implementation - Interactive search functionality - Browser integration through environment configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPager ¶
func NewPager(content string, styleName string, reloadFunc func() (string, api.Result, error), result api.Result) (*model, error)
NewPager creates a new pager model with the given content
Types ¶
type ErrorCode ¶
type ErrorCode string
ErrorCode defines error types for CLI operations
const ( NoPackageSpecified ErrorCode = "NoPackageSpecified" InvalidLanguageFlag ErrorCode = "InvalidLanguageFlag" InvalidLanguage ErrorCode = "InvalidLanguage" InvalidArguments ErrorCode = "InvalidArguments" UnsupportedLanguage ErrorCode = "UnsupportedLanguage" UnsupportedSource ErrorCode = "UnsupportedSource" ErrInvalidURL ErrorCode = "ErrInvalidURL" )
Click to show internal directories.
Click to hide internal directories.