Initial implementation of GithubWorkflowTool

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-27 03:03:18 +00:00
parent 7121ad38d3
commit 9b992001f3
37 changed files with 2711 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
#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);
};
} // namespace cli
} // namespace gwt