Add artifact name suggestions for download and install commands

This commit is contained in:
crazywhalecc
2026-02-04 16:25:23 +08:00
parent 3fa2d69813
commit 16f94466fd
3 changed files with 41 additions and 3 deletions

View File

@@ -69,6 +69,17 @@ class ArtifactLoader
}
}
/**
* Get names of all loaded artifacts.
*
* @return string[]
*/
public static function getLoadedArtifactNames(): array
{
self::initArtifactInstances();
return array_keys(self::$artifacts ?? []);
}
/**
* Process #[CustomSource] attribute.
*/