2022-08-10 10:53:23 +03:00
|
|
|
#pragma once
|
|
|
|
|
2022-08-10 21:52:07 +03:00
|
|
|
#include <clippy/project_list.hpp>
|
|
|
|
#include <clippy/target.hpp>
|
|
|
|
|
2022-08-10 10:53:23 +03:00
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
2022-08-10 21:52:07 +03:00
|
|
|
#include <memory>
|
2022-08-10 10:53:23 +03:00
|
|
|
|
|
|
|
class Clippy {
|
|
|
|
public:
|
|
|
|
void Run(const std::vector<std::string>& args);
|
|
|
|
|
2022-08-10 21:52:07 +03:00
|
|
|
using TargetPtr = std::unique_ptr<clippy::targets::Target>;
|
2022-08-10 10:53:23 +03:00
|
|
|
private:
|
2022-08-10 21:52:07 +03:00
|
|
|
TargetPtr TryExecuteClippyCommand(const std::vector<std::string>& args);
|
|
|
|
|
|
|
|
ProjectList projects_;
|
2022-08-10 10:53:23 +03:00
|
|
|
};
|