Files
CMLeonOS/shell/Commands/User/HostnameCommand.cs

19 lines
468 B
C#
Raw Normal View History

2026-02-04 21:53:11 +08:00
using System;
namespace CMLeonOS.Commands.User
{
public static class HostnameCommand
{
public static void ProcessHostnameCommand(string args, CMLeonOS.UserSystem userSystem, Action<string> showError)
{
if (string.IsNullOrEmpty(args))
{
showError("Usage: hostname <new_hostname>");
return;
}
userSystem.ProcessHostnameCommand(args);
}
}
}