From 670f8192c8d68c33e42b95847edd0678f87ca39b Mon Sep 17 00:00:00 2001 From: Justin Frank Date: Thu, 7 Mar 2019 22:31:04 -0800 Subject: [PATCH] Set up command boilerplate for provide-module and require-module --- src/commands.cc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/commands.cc b/src/commands.cc index ef597f6f..3c50accb 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -2405,6 +2405,36 @@ const CommandDesc enter_user_mode_cmd = { } }; +const CommandDesc provide_module_cmd = { + "provide-module", + nullptr, + "provide-module [] : declares a module provided by ", + ParameterDesc{ + { { "override", { false, "allow overriding an existing module" } } }, + ParameterDesc::Flags::None, + 2, 2 + }, + CommandFlags::None, + CommandHelper{}, + CommandCompleter{}, + [](const ParametersParser& parse, Context& context, const ShellContext&) + { + } +}; + +const CommandDesc require_module_cmd = { + "require-module", + nullptr, + "require-module : ensures that module has been loaded", + ParameterDesc{ {}, ParameterDesc::Flags::None, 1, 1 }, + CommandFlags::None, + CommandHelper{}, + CommandCompleter{}, + [](const ParametersParser& parser, Context& context, const ShellContext&) + { + } +}; + } void register_commands() @@ -2470,6 +2500,8 @@ void register_commands() register_command(fail_cmd); register_command(declare_user_mode_cmd); register_command(enter_user_mode_cmd); + register_command(provide_module_cmd); + register_command(require_module_cmd); } }