We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ace6ff commit d916f2aCopy full SHA for d916f2a
MethodSystem/Methods/DatabaseMethods/CreateDBMethod.cs
@@ -0,0 +1,21 @@
1
+using SER.ArgumentSystem.Arguments;
2
+using SER.ArgumentSystem.BaseArguments;
3
+using SER.FileSystem.Structures;
4
+using SER.MethodSystem.BaseMethods;
5
+
6
+namespace SER.MethodSystem.Methods.DatabaseMethods;
7
8
+public class CreateDBMethod : SynchronousMethod
9
+{
10
+ public override string Description => "Creates a new JSON file in the database folder.";
11
12
+ public override Argument[] ExpectedArguments =>
13
+ [
14
+ new TextArgument("name"),
15
+ ];
16
17
+ public override void Execute()
18
+ {
19
+ Database.Create(Args.GetText("name"));
20
+ }
21
+}
0 commit comments