16 cmd.add_option(
"<tileset-name>", tileset_name_,
"Name of the tileset to load")->required();
34 std::vector<std::unique_ptr<ConfigProvider>> providers{};
35 providers.push_back(std::make_unique<DefaultProvider>());
43 TilesetRepo repo{&checksum_provider, &key_provider, &artifact_reader, &artifact_writer};
46 auto verify_result = verify_use_case.
verify(tileset_name_);
47 if (!verify_result.has_value()) {
48 for (
const auto &err : verify_result.chain()) {
49 std::cerr << err->join(formatter) << std::endl;
55 static constexpr auto kCommandName =
"verify-tileset";
56 static constexpr auto kCommandDesc =
"Verify a tileset's contents.";
57 static constexpr auto kCommandGroup =
"COMMANDS";
59 std::string tileset_name_;
Command is an abstract class that provides basic command functionality for the Porytiles CLI driver.
CLI::App & get_app() const
void RegisterGroup(CLI::App &app) override
VerifyTilesetCommand(CLI::App &parent_app)
TextFormatter implementation that applies ANSI escape codes for terminal styling.
An implementation of FilePalLoader that loads palettes from JASC-PAL (Paintshop Pro) pal files.
An implementation of FilePalSaver that saves palettes to JASC-PAL (Paintshop Pro) pal files.
A Config implementation that lazily pulls a config value by consulting multiple priority-ordered back...
An image loader that reads PNG files to create an Image with an index pixel type.
An image saver that saves PNG files from an Image with an index pixel type.
An image loader that reads PNG files to create an Image with an Rgba32 pixel type.
An image saver that saves PNG files from an Image with an Rgba32 pixel type.
Provides a pokeemerald project filesystem-based implementation for TilesetArtifactKeyProvider.
Provides a filesystem-based implementation for TilesetArtifactReader.
Provides a filesystem-based implementation for TilesetArtifactWriter.
Repository interface for the Tileset aggregate root.
Use case for verifying a primary tileset.
ChainableResult< void > verify(const std::string &tileset_name) const