diff --git a/lib/generamba/cli/gen_command.rb b/lib/generamba/cli/gen_command.rb index 6a3c468..a2d4d13 100644 --- a/lib/generamba/cli/gen_command.rb +++ b/lib/generamba/cli/gen_command.rb @@ -45,7 +45,8 @@ def gen(module_name, template_name) module_validator = ModuleValidator.new module_validator.validate(code_module) - template = ModuleTemplate.new(template_name) + module_info = ModuleInfoGenerator.new(code_module) + template = ModuleTemplate.new(template_name, module_info.scope) parameters = GenCommandTableParametersFormatter.prepare_parameters_for_displaying(code_module, template_name) PrintTable.print_values(