29 lines
No EOL
1 KiB
C#
29 lines
No EOL
1 KiB
C#
using System.ComponentModel;
|
|
using JD.Core;
|
|
using JD.Core.ProjectManaging;
|
|
using TeaBox.Macros;
|
|
|
|
namespace TeaBox.ProductionSpecific
|
|
{
|
|
[Module(Category = "Data/Advanced", SortOrder = -1)]
|
|
[DisplayName("Data Root")]
|
|
public class DataRootMacros
|
|
{
|
|
[Macro(Icon = "debug")]
|
|
[DisplayName("Data root informations")]
|
|
public static void DataRootInformations(IExecutionContext context)
|
|
{
|
|
context.LogMessage(MessageImportance.High, $"Project id: {ProjectId.Value}, data path under: {DataPath.Value}");
|
|
context.LogMessage("");
|
|
|
|
var allProjects = ProjectManager.Instance.Projects;
|
|
context.LogMessage(MessageImportance.High, $"Registry {Project.RegistryKeyProjects} contains these {allProjects.Count} projects:");
|
|
foreach (var project in allProjects)
|
|
{
|
|
context.LogMessage(MessageImportance.High, $"\tProject {project.ProjectId}, data path: {project.DataPath}");
|
|
}
|
|
|
|
context.LogMessage("");
|
|
}
|
|
}
|
|
} |