BadScript 2
Loading...
Searching...
No Matches
BadOpenFileTerminalCommand.cs
Go to the documentation of this file.
2
4{
5 public BadOpenFileTerminalCommand() : base("Opens a file", "open") { }
6 public override Task Run(BadReplContext context, string[] args)
7 {
8 if (args.Length == 0)
9 {
10 context.Console.WriteLine("No file specified.");
11 }
12 else
13 {
14 string path = args[0];
15 context.OpenFile(path);
16 }
17 return Task.CompletedTask;
18 }
19}
override Task Run(BadReplContext context, string[] args)