Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectFramework ¶
DetectFramework detects the framework from config files in the given directory. It checks in order:
- .gh-pmu.yml - framework field
- framework-config.json - projectType.processFramework field
Returns empty string if no framework is configured (no restriction applied).
func ValidateCommand ¶
ValidateCommand checks if a command is applicable for the given framework. Returns nil if the command is allowed, or a CommandRestrictionError with a helpful suggestion if the command is not applicable.
Types ¶
type CommandRestrictionError ¶
CommandRestrictionError represents an error when a command is not applicable for a framework
func (*CommandRestrictionError) Error ¶
func (e *CommandRestrictionError) Error() string
Click to show internal directories.
Click to hide internal directories.