mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
19 lines
468 B
C#
19 lines
468 B
C#
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);
|
|
}
|
|
}
|
|
}
|