Sha256: 19e5aef74c8265b6ede8fcaa83b467868198ca0356f3c3a45b8d53c9028556f1

Contents?: true

Size: 581 Bytes

Versions: 43

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/core_ext'

module Avm
  module Tools
    class Runner
      class Applications
        class List
          runner_with :help, :output

          def run
            infov 'Found', applications.count
            run_output
          end

          def output_content
            applications.map { |s| "#{s}\n" }.join
          end

          private

          def applications_uncached
            ::Avm::Registry.applications.available
              .sort_by { |s| [s.id] }
          end
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
avm-tools-0.162.0 lib/avm/tools/runner/applications/list.rb
eac_tools-0.94.0 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
avm-tools-0.161.0 lib/avm/tools/runner/applications/list.rb
eac_tools-0.86.5 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
avm-tools-0.160.2 lib/avm/tools/runner/applications/list.rb
eac_tools-0.86.4 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.86.3 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
avm-tools-0.160.1 lib/avm/tools/runner/applications/list.rb
eac_tools-0.86.2 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.86.1 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
avm-tools-0.160.0 lib/avm/tools/runner/applications/list.rb
eac_tools-0.86.0 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.85.1 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
avm-tools-0.159.1 lib/avm/tools/runner/applications/list.rb
eac_tools-0.85.0 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.84.2 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.84.1 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.84.0 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
eac_tools-0.83.0 sub/avm-tools/lib/avm/tools/runner/applications/list.rb
avm-tools-0.159.0 lib/avm/tools/runner/applications/list.rb