diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-19 17:14:27 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-19 17:14:27 -0600 |
commit | 2495654ac0b1d9a4002f8d385d10d2afec784dda (patch) | |
tree | da8b25a9bbaa3ab3bc2901398db4a0a3ec74481c /hscript/meta.hh | |
parent | 3744e909df78cefebb083e401f6f6378f27d1b1a (diff) | |
download | horizon-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.hh | 9 |
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; |