cmd

package
v0.0.0-...-2b33715 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package cmd implements the command-line interface for vtpc.

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:          "vtpc <file-path>",
	Short:        "vtpc - Automate compilation of .vtp files",
	Version:      version.GetVersion(),
	Args:         validateArgs,
	RunE:         Execute,
	SilenceUsage: true,
}

RootCmd is the root command for the vtpc CLI application.

Functions

func Execute

func Execute(cmd *cobra.Command, args []string) error

Execute runs the provided command with the given arguments.

Types

type CompilationParams

type CompilationParams struct {
	FilePath string
	Hwnd     uintptr
	Pid      uint32
	PidPtr   *uint32
	Config   *Config
	Logger   logger.LoggerInterface
}

CompilationParams holds parameters for running compilation

type Config

type Config struct {
	Verbose  bool
	ShowLogs bool
}

Config holds all application configuration

func NewConfigFromFlags

func NewConfigFromFlags(cmd *cobra.Command) *Config

NewConfigFromFlags creates a Config from parsed command flags

type ExecutionContext

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

ExecutionContext holds state needed throughout the compilation process and for cleanup in signal handlers.

Jump to

Keyboard shortcuts

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