From 21e8d451e5487dd3a4a560f55f95dd720921302f Mon Sep 17 00:00:00 2001 From: Lucien Zuercher Date: Wed, 28 Apr 2021 15:36:57 +0300 Subject: [PATCH] Enable access to variables through const variables function --- include/alice/command.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/alice/command.hpp b/include/alice/command.hpp index 96bf1d7..5ad431e 100644 --- a/include/alice/command.hpp +++ b/include/alice/command.hpp @@ -150,6 +150,15 @@ class environment return _aliases; } + /*! \brief Returns a map of variables + + Keys are the variables identifiers. + */ + inline const std::unordered_map& variables() const + { + return _variables; + } + /*! \brief Get environment variable Finds an environment variable or returns a default value. Variables can be