using System.Diagnostics;
using StardewModdingAPI;
namespace TrainerMod.Framework.Commands.Other
{
/// A command which shows the game files.
internal class ShowGameFilesCommand : TrainerCommand
{
/*********
** Public methods
*********/
/// Construct an instance.
public ShowGameFilesCommand()
: base("show_game_files", "Opens the game folder.") { }
/// Handle the command.
/// Writes messages to the console and log file.
/// The command name.
/// The command arguments.
public override void Handle(IMonitor monitor, string command, ArgumentParser args)
{
Process.Start(Constants.ExecutionPath);
monitor.Log($"OK, opening {Constants.ExecutionPath}.", LogLevel.Info);
}
}
}