From 7c1efb0e68e7decd2d5276e7ff02f65bde9bbf9a Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 8 Oct 2019 21:19:13 -0500 Subject: hscript: Initial attempt at handling 'pkginstall' key --- hscript/meta.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hscript/meta.hh') diff --git a/hscript/meta.hh b/hscript/meta.hh index 626ce91..6515259 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -14,6 +14,7 @@ #define __HSCRIPT_META_HH_ #include +#include #include "key.hh" namespace Horizon { @@ -33,6 +34,17 @@ public: }; class PkgInstall : public Key { +private: + const std::set _pkgs; + PkgInstall(int _line, const std::set my_pkgs) : Key(_line), + _pkgs(my_pkgs) {} +public: + static Key *parseFromData(const std::string data, int lineno, int *errors, + int *warnings); + const std::set packages() const { return _pkgs; } + bool validate() const override { return true; } + bool execute() const override { return true; } + }; class Language : public Key { -- cgit v1.2.3-60-g2f50