MCPcopy Create free account
hub / github.com/bfgroup/Lyra / command

Method command

include/lyra/command.hpp:148–153  ·  view source on GitHub ↗

tag::reference[] [#lyra_command_ctor] == Construction [source] ---- command::command(const std::string & n); command::command( const std::string & n, const std::function & f); ---- To construct an `command` we need a name (`n`) that matches, and triggers, that command. end::reference[] */

Source from the content-addressed store, hash-verified

146
147end::reference[] */
148inline command::command(const std::string & n)
149{
150 this->sequential()
151 .add_argument(literal(n))
152 .add_argument(group().required());
153}
154inline command::command(
155 const std::string & n, const std::function<void(const group &)> & f)
156 : group(f)

Callers

nothing calls this directly

Calls 3

literalClass · 0.70
groupClass · 0.70
requiredMethod · 0.45

Tested by

no test coverage detected