mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-07 02:08:17 +02:00
19 lines
455 B
C#
19 lines
455 B
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.Configuration;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Robust.Shared.Console.Commands;
|
|
|
|
[UsedImplicitly]
|
|
public sealed class SaveConfig : LocalizedCommands
|
|
{
|
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
|
|
|
public override string Command => "saveconfig";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
_cfg.SaveToFile();
|
|
}
|
|
}
|