Classes/ModuleValidation.ps1
# =========================================================================== # ModuleValidation.ps1 ---------------------------------------------------- # =========================================================================== # import ------------------------------------------------------------------ # --------------------------------------------------------------------------- using namespace System.Management.Automation # validation -------------------------------------------------------------- # --------------------------------------------------------------------------- Class ValidateRequirements: IValidateSetValuesGenerator { [String[]] GetValidValues() { return [String[]] (ValidateVirtualEnvRequirement) } } # validation -------------------------------------------------------------- # --------------------------------------------------------------------------- Class ValidateVirtualEnv : IValidateSetValuesGenerator { [String[]] GetValidValues() { return [String[]] (ValidateVirtualEnvDirectories) } } |