commit | 87480ef29c6414f90413aded869e680caeca3072 | [log] [tgz] |
---|---|---|
author | aleskucera@cesnet.cz <aleskucera@cesnet.cz> | Fri Oct 27 13:13:59 2023 +0200 |
committer | aleskucera@cesnet.cz <aleskucera@cesnet.cz> | Fri Nov 24 17:53:47 2023 +0100 |
tree | 940099713aa35c36dd2d92c40fb8b424152283d9 | |
parent | 39b39faa1cb08f766724d5ba2d54d7ab85703402 [diff] [blame] |
Restrict 'cd' to the 'prepare' context The change follows up the previous fix, which blocked 'cd' command in 'prepare' context entirely. Bug: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/223 Fixes: 218ee7bcbef1c066a2be56f087ab8c824b529188 Change-Id: Iea0902e7981bcf3f9d41425e58cdd64ef6ea0be0
diff --git a/src/interpreter.hpp b/src/interpreter.hpp index f2cfd11..3723432 100644 --- a/src/interpreter.hpp +++ b/src/interpreter.hpp
@@ -36,6 +36,8 @@ void operator()(const quit_&) const; private: + void checkRpcPath(const dataPath_& commandPath) const; + [[nodiscard]] std::string buildTypeInfo(const std::string& path) const; template <typename PathType>