30#ifndef CLI_VARIADICFUNCTIONCOMMAND_H_
31#define CLI_VARIADICFUNCTIONCOMMAND_H_
43 template <
typename F,
typename ... Args>
51 const std::string& _name,
54 std::vector<std::string> parDesc)
55 :
Command(_name), func(std::move(fun)), description(std::move(desc)), parameterDesc(std::move(parDesc))
59 bool Exec(
const std::vector<std::string>& cmdLine,
CliSession& session)
override;
60 void Help(detail::HelpGroup& entries)
const override;
64 const std::string description;
65 const std::vector<std::string> parameterDesc;
Command(std::string _name)
bool Exec(const std::vector< std::string > &cmdLine, CliSession &session) override
void Help(detail::HelpGroup &entries) const override
VariadicFunctionCommand & operator=(const VariadicFunctionCommand &)=delete
VariadicFunctionCommand(const VariadicFunctionCommand &)=delete
VariadicFunctionCommand(const std::string &_name, F fun, std::string desc, std::vector< std::string > parDesc)