aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Terminal/Commands/shutdown.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Main/Terminal/Commands/shutdown.cs')
-rw-r--r--ShiftOS.Main/Terminal/Commands/shutdown.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/ShiftOS.Main/Terminal/Commands/shutdown.cs b/ShiftOS.Main/Terminal/Commands/shutdown.cs
new file mode 100644
index 0000000..880af1e
--- /dev/null
+++ b/ShiftOS.Main/Terminal/Commands/shutdown.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace ShiftOS.Main.Terminal.Commands
+{
+ class shutdown:TerminalCommand
+ {
+ public override string Name { get; } = "shutdown";
+ public override string Summary { get; } = "Shuts down and saves ShiftOS.";
+ public override string Usage { get; } = "shutdown";
+ public override bool Unlocked { get; set; } = true;
+
+ public override void Run(params string[] parameters)
+ {
+ Application.Exit();
+ }
+ }
+}