Add change config file and run config file

This commit is contained in:
Timofey 2022-08-11 16:43:53 +03:00
parent 77a2ee9989
commit 51188e9f8e
9 changed files with 273 additions and 22 deletions

View file

@ -1,5 +1,22 @@
#pragma once
class Config {
#include <utils/editor.hpp>
#include <string>
#include <memory>
namespace clippy::targets {
class Target;
}
class Config {
public:
Config(std::string path) : path_(std::move(path)) {}
void Edit() { utils::OpenEditor(path_); }
std::unique_ptr<clippy::targets::Target> GetTarget(const std::string& target);
private:
std::string path_;
};