Class FZagalaSpecImportExportCommands#
Defined in File ZagalaSpecImportExportCommands.h
Class Documentation#
-
class FZagalaSpecImportExportCommands#
Registers and handles console commands for import/export of ZagalaSpec features.
Console commands registered:
ZagalaSpec.Import <format> <file-or-folder-paths...>Import BDD files to feature assets. Formats: gherkin, robot, fitnesse, gauge, zagalaspec, all (auto-detect) Paths: Space-separated file or folder paths (absolute or relative to project)ZagalaSpec.Export <format> <feature-tag-query>Export feature assets to BDD files. Formats: gherkin, specflow, robot, fitnesse, zagalaspec Tag Query: Partial GameplayTag (e.g., “ZagalaSpec.Feature” matches all children)
Commands work both in editor console and via
-ExecCmdscommandline argument. Example: UnrealEditor.exe Project.uproject -ExecCmds=”ZagalaSpec.Import gherkin C:/Features;Quit”Public Functions
-
FZagalaSpecImportExportCommands()#
-
~FZagalaSpecImportExportCommands()#
-
void RegisterCommands()#
Register console commands with IConsoleManager.
Called on module startup.
-
void UnregisterCommands()#
Unregister console commands.
Called on module shutdown.
-
void ExecuteImport(const TArray<FString> &Args)#
Handler for ZagalaSpec.Import console command.
Args format:
<format> <file-or-folder-paths...>Public for testing purposes.- Parameters:
Args – Console command arguments.
-
void ExecuteExport(const TArray<FString> &Args)#
Handler for ZagalaSpec.Export console command.
Args format:
<format> <feature-tag-query>Public for testing purposes.- Parameters:
Args – Console command arguments.
-
void ImportFileToDestination(const FString &AbsoluteFilePath, const FString &Format, const FString &DestinationContentPath, int32 &OutImportedCount, TArray<FString> &OutWarnings)#
Import a single file to an explicit content destination.
Called by ExecuteImport (with empty destination = use settings) and the Content Browser “Import Feature File…” menu entry (with folder path as destination).
- Parameters:
AbsoluteFilePath – Absolute filesystem path to the BDD file.
Format – Format hint: gherkin, robot, fitnesse, gauge, all.
DestinationContentPath – Content-browser package path (e.g. “/Game/Features/MyFolder”). Empty string falls back to UZagalaSpecImportExportSettings default.
OutImportedCount – Incremented for each successfully created asset.
OutWarnings – Appended with any non-fatal warnings.