Files
RobustToolbox/Robust.Shared/Toolshed/Commands/Misc/IoCCommand.cs
2025-11-15 11:26:52 +11:00

16 lines
442 B
C#

using System;
using System.Collections.Generic;
using Robust.Shared.IoC;
namespace Robust.Shared.Toolshed.Commands.Misc;
[ToolshedCommand]
internal sealed class IoCCommand : ToolshedCommand
{
[CommandImplementation("registered")]
public IEnumerable<Type> Registered() => IoCManager.Instance!.GetRegisteredTypes();
[CommandImplementation("get")]
public object? Get([PipedArgument] Type t) => IoCManager.ResolveType(t);
}