diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-04-15 08:43:30 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-04-15 08:43:30 +0200 |
| commit | 34b10f41aa285e423cccb161342b68ae7275da4b (patch) | |
| tree | e021c107400ec467b59a019c45d6659110c677cf /src/command.h | |
| parent | dbf14caee2f3ffbcfb21d5ca4d1566e0f57a1aed (diff) | |
| download | slackbuilder-34b10f41aa285e423cccb161342b68ae7275da4b.tar.gz | |
Retrieve updatable packages
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; }; |
