Sha256: 02dc4f069dca7dce379b51ebc0813728c87add4d927d4f3765456a2df5cd0258
Contents?: true
Size: 935 Bytes
Versions: 56
Compression:
Stored size: 935 Bytes
Contents
# frozen_string_literal: true require 'avm/launcher/stereotype' require 'avm/tools/core_ext' module Avm module Tools class Runner class LauncherStereotypes class List runner_with :help, :output do bool_opt '-d', '--deprecated' end def run infov 'Found', stereotypes.count run_output end def output_content stereotypes.map { |s| "#{s}\n" }.join end private def stereotypes (parsed.deprecated? ? deprecated_stereotypes : registry_stereotypes) end def registry_stereotypes ::Avm::Registry.launcher_stereotypes.available.sort_by { |s| [s.name] } end def deprecated_stereotypes ::Avm::Launcher::Stereotype.stereotypes.sort_by { |s| [s.stereotype_name] } end end end end end end
Version data entries
56 entries across 56 versions & 2 rubygems