mirror of
https://github.com/johndoe6345789/GithubWorkflowTool.git
synced 2026-04-25 06:05:02 +00:00
- Created comprehensive LIMITATIONS.md documenting all v1 limitations with categories, resolution paths, and workarounds - Implemented 'gwt doctor' CLI command to check system and workflow compatibility - Updated README.md to reference LIMITATIONS.md - Updated USAGE.md with doctor command documentation and examples - Added example workflow demonstrating known limitations Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
46 lines
965 B
C++
46 lines
965 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QStringList>
|
|
#include <memory>
|
|
|
|
namespace gwt {
|
|
namespace core {
|
|
class RepoManager;
|
|
class JobExecutor;
|
|
}
|
|
|
|
namespace cli {
|
|
|
|
/**
|
|
* @brief Handles command-line interface commands
|
|
*/
|
|
class CommandHandler : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CommandHandler(QObject* parent = nullptr);
|
|
~CommandHandler() override;
|
|
|
|
/**
|
|
* @brief Execute a command with arguments
|
|
* @param args Command line arguments
|
|
* @return Exit code
|
|
*/
|
|
int execute(const QStringList& args);
|
|
|
|
private:
|
|
std::unique_ptr<core::RepoManager> m_repoManager;
|
|
std::unique_ptr<core::JobExecutor> m_executor;
|
|
|
|
void printHelp() const;
|
|
int handleClone(const QStringList& args);
|
|
int handleList(const QStringList& args);
|
|
int handleRun(const QStringList& args);
|
|
int handleWorkflows(const QStringList& args);
|
|
int handleDoctor(const QStringList& args);
|
|
};
|
|
|
|
} // namespace cli
|
|
} // namespace gwt
|