拆分代码9

This commit is contained in:
2026-02-04 21:53:11 +08:00
parent 57cd1262cd
commit 2c36c08ca0
4 changed files with 102 additions and 68 deletions

View File

@@ -0,0 +1,18 @@
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);
}
}
}