mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
* Warning fixes in Robust.Shared * Robust.Client warning fixes * Fix test failure Test failures were due to broken system registrations for the client RobustUnitTest. It was accidentally registering some server systems, which means DebugPhysicsSystem wasn't gettings its dependencies properly. Fixing this meant pulling half a dozen extra dependencies that client ContainerSystem and TransformSystem are supposed to have, but didn't.
31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
using Robust.Shared.Configuration;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Maths;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.Shared.Toolshed.Commands.Misc;
|
|
|
|
[ToolshedCommand]
|
|
internal sealed class BuildInfoCommand : ToolshedCommand
|
|
{
|
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
|
|
|
private static readonly string Gold = Color.Gold.ToHex();
|
|
|
|
[CommandImplementation]
|
|
public void BuildInfo([CommandInvocationContext] IInvocationContext ctx)
|
|
{
|
|
var game = _cfg.GetCVar(CVars.BuildForkId);
|
|
var buildCommit = _cfg.GetCVar(CVars.BuildHash);
|
|
var buildManifest = _cfg.GetCVar(CVars.BuildManifestHash);
|
|
var engine = _cfg.GetCVar(CVars.BuildEngineVersion);
|
|
|
|
ctx.WriteLine(FormattedMessage.FromMarkupOrThrow($"""
|
|
[color={Gold}]Game:[/color] {game}
|
|
[color={Gold}]Build commit:[/color] {buildCommit}
|
|
[color={Gold}]Manifest hash:[/color] {buildManifest}
|
|
[color={Gold}]Engine ver:[/color] {engine}
|
|
"""));
|
|
}
|
|
}
|