using System.Diagnostics;
using StardewModdingAPI;
namespace TrainerMod.Framework.Commands.Other
{
/// A command which shows the data files.
internal class ShowDataFilesCommand : TrainerCommand
{
/*********
** Public methods
*********/
/// Construct an instance.
public ShowDataFilesCommand()
: base("show_data_files", "Opens the folder containing the save and log files.") { }
/// 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.DataPath);
monitor.Log($"OK, opening {Constants.DataPath}.", LogLevel.Info);
}
}
}