0% found this document useful (0 votes)
2 views2 pages

Utility

Uploaded by

emekaojji4248
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Utility

Uploaded by

emekaojji4248
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

using System;

using [Link];

namespace UtilityOS

public class Kernel : [Link]

protected override void BeforeRun()

[Link]();

[Link]("UtilityOS v0.1");

[Link]("Type 'help' for available commands.");

protected override void Run()

[Link]("> ");

string input = [Link]()?.Trim().ToLower();

switch (input)

case "help":

[Link]("Commands: help, meminfo, time, reboot, shutdown");

break;
case "meminfo":

[Link]($"Available Memory: {[Link](false)} bytes");

break;

case "time":

[Link]($"Current Time: {[Link]}");

break;

case "reboot":

[Link]("Rebooting...");

[Link]();

break;

case "shutdown":

[Link]("Shutting down...");

[Link]();

break;

default:

[Link]("Unknown command");

break;

You might also like