Files
yaze/src/cli/handlers/agent/palette_commands.h
scawful 019c20e749 feat: Enhance z3ed networking documentation and CLI capabilities
- Updated NETWORKING.md to reflect the new versioning and provide a comprehensive overview of the z3ed networking, collaboration, and remote access features.
- Introduced detailed architecture descriptions, including communication layers and core components for collaboration.
- Added new CLI commands for hex and palette manipulation, enhancing the functionality of the z3ed CLI.
- Implemented a TODO management system within the CLI for better task tracking and execution planning.
- Improved README.md to include new CLI capabilities and enhancements related to the TODO management system.
2025-10-05 01:15:15 -04:00

56 lines
1.6 KiB
C++

#ifndef YAZE_CLI_HANDLERS_AGENT_PALETTE_COMMANDS_H_
#define YAZE_CLI_HANDLERS_AGENT_PALETTE_COMMANDS_H_
#include <string>
#include <vector>
#include "absl/status/status.h"
namespace yaze {
class Rom;
namespace cli {
namespace agent {
/**
* @brief Get all colors from a specific palette
*
* @param args Command arguments: [group, palette, format]
* @param rom_context ROM instance to read from
* @return absl::Status Result of the operation
*
* Example: palette-get-colors --group=0 --palette=0 --format=hex
*/
absl::Status HandlePaletteGetColors(const std::vector<std::string>& args,
Rom* rom_context = nullptr);
/**
* @brief Set a specific color in a palette (creates proposal)
*
* @param args Command arguments: [group, palette, color_index, color]
* @param rom_context ROM instance to modify
* @return absl::Status Result of the operation
*
* Example: palette-set-color --group=0 --palette=0 --index=5 --color=FF0000
*/
absl::Status HandlePaletteSetColor(const std::vector<std::string>& args,
Rom* rom_context = nullptr);
/**
* @brief Analyze color usage and statistics for a palette or bitmap
*
* @param args Command arguments: [target_type, target_id]
* @param rom_context ROM instance to analyze
* @return absl::Status Result of the operation
*
* Example: palette-analyze --type=palette --id=0
*/
absl::Status HandlePaletteAnalyze(const std::vector<std::string>& args,
Rom* rom_context = nullptr);
} // namespace agent
} // namespace cli
} // namespace yaze
#endif // YAZE_CLI_HANDLERS_AGENT_PALETTE_COMMANDS_H_