Sha256: 24e16d2d25f949108ceb1bc9fdaf8ef9965e4dbd0eeb2ab8815630d245bbb95f
Contents?: true
Size: 790 Bytes
Versions: 124
Compression:
Stored size: 790 Bytes
Contents
# frozen_string_literal: true require 'eac_cli/core_ext' module Avm module Sources class Runner runner_with :help, :subcommands do desc 'Root command for sources.' arg_opt '-C', '--path', 'Path to the source.', default: '.' subcommands end def extra_available_subcommands optional_source.if_present({}, &:extra_available_subcommands) end def source_banner infov 'Source', source end # @return [Pathname] def source_path parsed.path.to_pathname end private def source_uncached ::Avm::Registry.sources.detect(source_path) end def optional_source_uncached ::Avm::Registry.sources.detect_optional(source_path) end end end end
Version data entries
124 entries across 124 versions & 2 rubygems