Documentation
¶
Overview ¶
Package executable provides utilities for working with executable files and their versions. It defines structures and methods for executing commands on files and extracting information using command strategies and regular expression patterns.
The core components include: - Executable: Represents a file with version information and allows command execution. - Parser: Defines patterns and strategies to parse strings from command outputs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executable ¶
Executable represents a command-line executable.
func New ¶
func New(paths ...string) Executable
NewExecutable creates a new Executable instance from the provided paths.
type Parser ¶
type Parser struct {
// Patterns are regex patterns used to match strings in command output.
Patterns []string
// Commands are command strategies to be executed for extraction.
Commands []string
}
Parser provides functionality for parsing strings from an output using regex patterns.