Add change config file and run config file
This commit is contained in:
parent
77a2ee9989
commit
51188e9f8e
9 changed files with 273 additions and 22 deletions
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue