Documentation
¶
Overview ¶
Package cmd implements the command-line interface for smpc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "smpc <file-path>", Short: "smpc - Automate compilation of .smw files", Version: version.GetVersion(), Args: validateArgs, RunE: Execute, SilenceUsage: true, }
RootCmd is the root command for the smpc CLI application.
Functions ¶
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 ¶
Config holds all application configuration
func NewConfigFromFlags ¶
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.
Click to show internal directories.
Click to hide internal directories.