cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewBatchCmd

func NewBatchCmd() *cobra.Command

NewBatchCmd creates the batch command

func NewConvertCmd

func NewConvertCmd() *cobra.Command

NewConvertCmd creates the convert command

func NewInfoCmd

func NewInfoCmd() *cobra.Command

NewInfoCmd creates the info command

func NewPlatformsCmd

func NewPlatformsCmd() *cobra.Command

NewPlatformsCmd creates the platforms command

func NewValidateCmd

func NewValidateCmd() *cobra.Command

NewValidateCmd creates the validate command

Types

type BatchJob

type BatchJob struct {
	FilePath   string
	OutputPath string
	Index      int
	Total      int
}

BatchJob represents a single conversion task

type BatchResult

type BatchResult struct {
	Job      BatchJob
	Success  bool
	Error    error
	Duration time.Duration
}

BatchResult represents the result of a conversion task

type ConcurrentBatchProcessor

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

ConcurrentBatchProcessor handles concurrent batch processing

func NewConcurrentBatchProcessor

func NewConcurrentBatchProcessor(conversionSvc *services.ConversionService, totalFiles int) *ConcurrentBatchProcessor

NewConcurrentBatchProcessor creates a new concurrent batch processor

func (*ConcurrentBatchProcessor) Close

func (p *ConcurrentBatchProcessor) Close()

Close gracefully shuts down the processor

func (*ConcurrentBatchProcessor) ProcessFiles

func (p *ConcurrentBatchProcessor) ProcessFiles(files []string) (int, int, error)

ProcessFiles processes all files concurrently

type ErrorCodeMapping

type ErrorCodeMapping struct {
	Pattern     string
	Message     string
	Suggestions []string
	Severity    models.ErrorSeverity
}

ErrorCodeMapping represents a mapping from error pattern to user-friendly message

type ProgressTracker

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

ProgressTracker tracks batch processing progress

Jump to

Keyboard shortcuts

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