Class: ChefCLI::ShellCompletionTemplateContext

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-cli/command/shell_init.rb

Instance Method Summary collapse

Instance Method Details

#commandsObject



33
34
35
36
37
38
# File 'lib/chef-cli/command/shell_init.rb', line 33

def commands
  ChefCLI.commands_map.command_specs.inject({}) do |cmd_info, (_key, cmd_spec)|
    cmd_info[cmd_spec.name] = cmd_spec.description
    cmd_info
  end
end

#get_bindingObject



40
41
42
# File 'lib/chef-cli/command/shell_init.rb', line 40

def get_binding
  binding
end