Documentation
¶
Overview ¶
Copyright (c) 2025 Guilherme Silva Sousa Licensed under the MIT License See LICENSE file in the project root for full license information. Package validation provides command structure and metadata validation utilities.
Copyright (c) 2025 Guilherme Silva Sousa Licensed under the MIT License See LICENSE file in the project root for full license information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidationError ¶
IsValidationError checks if an error is a validation.Error
func ValidateDirectory ¶
ValidateDirectory validates a command directory structure
func ValidateInstalled ¶
ValidateInstalled validates an already installed command
Types ¶
type CommandValidator ¶
type CommandValidator struct {
// contains filtered or unexported fields
}
CommandValidator validates command structure and content
func NewCommandValidator ¶
func NewCommandValidator(commandPath string) *CommandValidator
NewCommandValidator creates a new validator for a command directory
func (*CommandValidator) Validate ¶
func (v *CommandValidator) Validate() error
Validate performs full validation of the command structure
type Error ¶
Error represents a validation error with context
func NewValidationError ¶
NewValidationError creates a new validation error
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator provides validation methods for commands
func NewValidator ¶
func NewValidator(fileSystem fs.FileSystem) *Validator
NewValidator creates a new validator with the given file system
func (*Validator) ValidateCommandStructure ¶
ValidateCommandStructure validates a command directory structure using the file system