| 833 | } |
| 834 | |
| 835 | bool Exec(const std::vector< std::string >& cmdLine, CliSession& session) override |
| 836 | { |
| 837 | if (!IsEnabled()) return false; |
| 838 | assert(!cmdLine.empty()); |
| 839 | if (Name() == cmdLine[0]) |
| 840 | { |
| 841 | func(session.OutStream(), std::vector<std::string>(std::next(cmdLine.begin()), cmdLine.end())); |
| 842 | return true; |
| 843 | } |
| 844 | return false; |
| 845 | } |
| 846 | void Help(std::ostream& out) const override |
| 847 | { |
| 848 | if (!IsEnabled()) return; |