Sha256: ab8b16ed3a464e41355556a9636b3d38655f7f3bb2c16ea2c15ca30daaf24a12
Contents?: true
Size: 970 Bytes
Versions: 65
Compression:
Stored size: 970 Bytes
Contents
# frozen_string_literal: true require 'avm/launcher/stereotype' require 'avm/projects/stereotypes' 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
65 entries across 65 versions & 2 rubygems