diff options
Diffstat (limited to 'src/command.h')
| -rw-r--r-- | src/command.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/command.h b/src/command.h index f03281f..b168f04 100644 --- a/src/command.h +++ b/src/command.h @@ -1,10 +1,10 @@ +#pragma once + #include <iostream> #include <cstring> #include <memory> #include <vector> #include "package.h" -#include <boost/process.hpp> -#include <filesystem> namespace katja { @@ -28,24 +28,7 @@ namespace katja class update final : public command { - boost::filesystem::path git_binary; - - template<typename... Args> - void git(const std::string& command, const std::filesystem::path& cwd, const Args&... args) const - { - if (cwd.empty()) - { - boost::process::system(git_binary, command, args...); - } - else - { - boost::process::system(git_binary, "-C", cwd.native(), command, args...); - } - } - public: - explicit update(); - void execute() const override; }; |
