2022-12-09 03:39:15 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Commandlets/Commandlet.h"
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
|
|
2023-01-13 04:29:19 -05:00
|
|
|
#include "GeneratePayloadManifestCommandlet.generated.h"
|
2022-12-09 03:39:15 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a csv file containing info about all of the payloads in a set of packages.
|
|
|
|
|
* By default the commandlet will parse the payloads of all packages in the current
|
2023-05-15 04:03:12 -04:00
|
|
|
* project but this can be overridden with the cmdline switch -PackageDir=XYZ which
|
2022-12-09 03:39:15 -05:00
|
|
|
* will allow the commandlet to parse the payloads of the packages in a given directory.
|
|
|
|
|
*
|
2023-05-15 04:03:12 -04:00
|
|
|
* Because the commandlet is the VirtualizationEditor module it needs to be invoked
|
2022-12-09 03:39:15 -05:00
|
|
|
* with the command line:
|
2023-03-10 02:56:22 -05:00
|
|
|
* -run="VirtualizationEditor.GeneratePayloadManifest"
|
2022-12-09 03:39:15 -05:00
|
|
|
*/
|
|
|
|
|
UCLASS()
|
|
|
|
|
class UGeneratePayloadManifestCommandlet
|
|
|
|
|
: public UCommandlet
|
|
|
|
|
{
|
|
|
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
|
|
|
|
|
|
//~ Begin UCommandlet Interface
|
|
|
|
|
virtual int32 Main(const FString& Params) override;
|
|
|
|
|
//~ End UCommandlet Interface
|
|
|
|
|
|
|
|
|
|
static int32 StaticMain(const FString& Params);
|
2023-05-11 04:51:23 -04:00
|
|
|
|
|
|
|
|
bool ParseCmdline(const FString& Params);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
bool bLocalOnly = false;
|
2022-12-09 03:39:15 -05:00
|
|
|
};
|