using System.Collections.Generic; using System.Reflection; namespace Unity.Pipeline.Commands { /// /// Interface for command discovery mechanism. /// Allows Runtime assembly to discover commands without directly using Editor APIs. /// interface ICommandDiscovery { /// /// Find all methods marked with CliCommand attribute. /// Implementation uses TypeCache in Editor or reflection fallback in Runtime. /// /// The attribute type to search for. /// The matching methods. IEnumerable GetMethodsWithAttribute() where T : System.Attribute; } }