cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version information - set from main package
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Functions

func Execute

func Execute() error

Execute runs the root command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root command

func PrintVersion added in v1.1.0

func PrintVersion()

PrintVersion prints the version information

Types

type App

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

App is the main application

func NewApp

func NewApp(ctx context.Context, config AppConfig) (*App, error)

NewApp creates a new application instance

func (*App) Translate

func (a *App) Translate(ctx context.Context, params TranslateParams) error

Translate performs the translation workflow

type AppConfig

type AppConfig struct {
	Provider string
	Model    string
	APIKey   string
	Verbose  bool
}

AppConfig contains application configuration

type TranslateParams

type TranslateParams struct {
	SourcePath      string
	SourceLang      string
	TargetLang      string
	OutputPath      string
	TerminologyDir  string
	SkipTerminology bool
	NoTerminology   bool
	RedetectTerms   bool
	Incremental     bool
	Keys            string
	ExcludeKeys     string
	BatchSize       int
	Concurrency     int
	Yes             bool
}

TranslateParams contains parameters for translation

Jump to

Keyboard shortcuts

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