summaryrefslogtreecommitdiff
path: root/hscript/meta.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-19 17:14:27 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-19 17:14:27 -0600
commit2495654ac0b1d9a4002f8d385d10d2afec784dda (patch)
treeda8b25a9bbaa3ab3bc2901398db4a0a3ec74481c /hscript/meta.hh
parent3744e909df78cefebb083e401f6f6378f27d1b1a (diff)
downloadhorizon-2495654ac0b1d9a4002f8d385d10d2afec784dda.tar.gz
horizon-2495654ac0b1d9a4002f8d385d10d2afec784dda.tar.bz2
horizon-2495654ac0b1d9a4002f8d385d10d2afec784dda.tar.xz
horizon-2495654ac0b1d9a4002f8d385d10d2afec784dda.zip
hscript: Add 'arch' key implementation and related tests
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r--hscript/meta.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh
index 547349d..8740f96 100644
--- a/hscript/meta.hh
+++ b/hscript/meta.hh
@@ -30,6 +30,15 @@ public:
bool execute(ScriptOptions) const override;
};
+class Arch : public StringKey {
+private:
+ Arch(int _line, const std::string &arch) :
+ StringKey(_line, arch) {}
+public:
+ static Key *parseFromData(const std::string &, int, int *, int *);
+ bool execute(ScriptOptions) const override;
+};
+
class PkgInstall : public Key {
private:
const std::set<std::string> _pkgs;