Skip to content

Commit 139be90

Browse files
committed
refactored code
1 parent 370de0a commit 139be90

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

ShadowOS/Core/Shell.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public static void Prompt(string cmdline)
5858
{
5959
if (command.Contains("--help"))
6060
{
61-
ClearCMD.PrintHelp();
61+
CommandClear.PrintHelp();
6262
}
6363
else
6464
{
65-
ClearCMD.Clear();
65+
CommandClear.Clear();
6666
}
6767
}
6868
catch (Exception ex)
@@ -76,7 +76,7 @@ public static void Prompt(string cmdline)
7676
{
7777
try
7878
{
79-
HelpCMD.Help();
79+
CommandHelp.Help();
8080
}
8181
catch (Exception ex)
8282
{

ShadowOS/Terminal/Help.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Shadow_OS.Terminal
55
{
6-
class HelpCMD
6+
class CommandHelp
77
{
88
public static void Help()
99
{

ShadowOS/Translation/Help.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,15 @@ public static void Log()
275275
case "en_us":
276276
Console.WriteLine("Description: shows information about the latest crash logs");
277277
Console.WriteLine("Usage: log [option]");
278-
Console.WriteLine("--system shows the latest system crash");
279-
Console.WriteLine("--normal shows the latest non-kernel crash logs");
278+
Console.WriteLine("--system shows the latest system crash log");
279+
Console.WriteLine("--normal shows the latest non-kernel crash log");
280280
Console.WriteLine("--app shows the latest app crash log");
281281
break;
282282

283283
case "da":
284284
Console.WriteLine("Beskrivelse: viser information om de seneste crash logs");
285285
Console.WriteLine("Brug: log [valg]");
286-
Console.WriteLine("--system viser den seneste system crash");
286+
Console.WriteLine("--system viser den seneste system crash log");
287287
Console.WriteLine("--normal Viser den seneste ikke kernel crash log");
288288
Console.WriteLine("--app viser den seneste app crash log");
289289
break;

screenshots/clear_command.gif

347 KB
Loading

screenshots/dir_command.gif

176 KB
Loading

screenshots/diskinfo_command.gif

162 KB
Loading

screenshots/systeminfo_command.gif

198 KB
Loading

0 commit comments

Comments
 (0)