using System; using System.Collections.Generic; using CMLeonOS; namespace CMLeonOS.Commands.User { public static class HostnameCommand { public static void ProcessHostnameCommand(string args, CMLeonOS.UserSystem userSystem, Action showError) { if (string.IsNullOrEmpty(args)) { var commandInfos = new List { new UsageGenerator.CommandInfo { Command = "", Description = "Set new hostname", IsOptional = false } }; showError(UsageGenerator.GenerateUsage("hostname", commandInfos)); return; } userSystem.ProcessHostnameCommand(args); } } }