Move all interactive input to construct

This commit is contained in:
crazywhalecc
2026-03-09 11:04:18 +08:00
parent 1f768ffc64
commit 77e129881a
11 changed files with 96 additions and 61 deletions

View File

@@ -16,6 +16,7 @@ class ConfigValidator
public const array PACKAGE_FIELD_TYPES = [
// package fields
'type' => ConfigType::STRING,
'description' => ConfigType::STRING,
'depends' => ConfigType::LIST_ARRAY, // @
'suggests' => ConfigType::LIST_ARRAY, // @
'artifact' => [self::class, 'validateArtifactField'], // STRING or OBJECT
@@ -43,6 +44,7 @@ class ConfigValidator
public const array PACKAGE_FIELDS = [
'type' => true,
'description' => false,
'depends' => false, // @
'suggests' => false, // @
'artifact' => false,