From 34b10f41aa285e423cccb161342b68ae7275da4b Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 15 Apr 2023 08:43:30 +0200 Subject: Retrieve updatable packages --- src/command.h | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'src/command.h') 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 #include #include #include #include "package.h" -#include -#include namespace katja { @@ -28,24 +28,7 @@ namespace katja class update final : public command { - boost::filesystem::path git_binary; - - template - 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; }; -- cgit v1.2.3