Method: Bake::Command::List#call
- Defined in:
- lib/bake/command/list.rb
#call ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/bake/command/list.rb', line 78 def call first = true terminal = @parent.terminal context = @parent.context context.registry.each do |loader| printed = false loader.each do |path| loader.scopes_for(path) do |scope| print_scope(terminal, scope, printed: printed) do terminal.print_line(:loader, loader) printed = true end end end if printed terminal.print_line end end end |