tools/eupak: Refactor out Arguments from public view

They aren't needed for public view anymore.
This commit is contained in:
Lily Tsuru 2025-01-15 19:26:43 -05:00
parent e30913b018
commit addf2071f4
2 changed files with 14 additions and 17 deletions

View file

@ -18,18 +18,6 @@
namespace eupak::tasks { namespace eupak::tasks {
struct CreateTask : ITask { struct CreateTask : ITask {
/// Arguments.
/// This is no longer directly used by clients
/// and should later be factored out of surface.
struct Arguments {
fs::path inputDirectory;
fs::path outputFile;
bool verbose;
europa::structs::PakVersion pakVersion;
bool sectorAligned;
};
CreateTask(); CreateTask();
void Init(argparse::ArgumentParser& parentParser) override; void Init(argparse::ArgumentParser& parentParser) override;
@ -41,6 +29,15 @@ namespace eupak::tasks {
int Run() override; int Run() override;
private: private:
struct Arguments {
fs::path inputDirectory;
fs::path outputFile;
bool verbose;
europa::structs::PakVersion pakVersion;
bool sectorAligned;
};
argparse::ArgumentParser parser; argparse::ArgumentParser parser;
Arguments currentArgs; Arguments currentArgs;
}; };

View file

@ -16,11 +16,6 @@
namespace eupak::tasks { namespace eupak::tasks {
struct InfoTask : ITask { struct InfoTask : ITask {
struct Arguments {
fs::path inputPath;
bool verbose;
};
InfoTask(); InfoTask();
void Init(argparse::ArgumentParser& parentParser) override; void Init(argparse::ArgumentParser& parentParser) override;
@ -32,6 +27,11 @@ namespace eupak::tasks {
int Run() override; int Run() override;
private: private:
struct Arguments {
fs::path inputPath;
bool verbose;
};
argparse::ArgumentParser parser; argparse::ArgumentParser parser;
Arguments currentArgs; Arguments currentArgs;
}; };