Sha256: 01633f1cc88f77cb2b249c14e58c135941ed86bbf42389bcfc2e8395db920d9e
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true module Specimen module Command class BaseGroup < Thor::Group include Thor::Actions class << self def exit_on_failure? false end end no_commands do def usage_path find_in_source_paths('USAGE') rescue Thor::Error '' end def usage_content return '' if usage_path.empty? File.read(usage_path) end def class_usage return nil if usage_content.empty? ERB.new(usage_content, trim_mode: '-').result(binding) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
specimen-0.0.4.alpha | lib/specimen/command/base_group.rb |
specimen-0.0.3.alpha | lib/specimen/command/base_group.rb |
specimen-0.0.2.alpha | lib/specimen/command/base_group.rb |