Sha256: 4203cc960d6a3224e1fbe0f72cbdb54e276f8fed676914f927800dfaa0a69355

Contents?: true

Size: 476 Bytes

Versions: 53

Compression:

Stored size: 476 Bytes

Contents

require_relative 'scripting/args_helpers'
require_relative 'scripting/argument'
require_relative 'scripting/arguments'

module Eco
  class CLI
    class Scripting
      include Scripting::ArgsHelpers

      def args_contain?(*values)
        match?(ARGV, patterns, [:any, :or, :insensitive, :pattern])
      end

      def modifiers(*values)
        values.select { |arg| is_modifier?(arg) }
      end

    end
  end
end


SCR = Eco::CLI::Scripting.new

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
eco-helpers-1.5.1 lib/eco/cli/scripting.rb
eco-helpers-1.5.0 lib/eco/cli/scripting.rb
eco-helpers-1.4.2 lib/eco/cli/scripting.rb
eco-helpers-1.3.19 lib/eco/cli/scripting.rb
eco-helpers-1.4.1 lib/eco/cli/scripting.rb
eco-helpers-1.4.0 lib/eco/cli/scripting.rb
eco-helpers-1.3.18 lib/eco/cli/scripting.rb
eco-helpers-1.3.17 lib/eco/cli/scripting.rb
eco-helpers-1.3.16 lib/eco/cli/scripting.rb
eco-helpers-1.3.15 lib/eco/cli/scripting.rb
eco-helpers-1.3.14 lib/eco/cli/scripting.rb
eco-helpers-1.3.13 lib/eco/cli/scripting.rb
eco-helpers-1.3.12 lib/eco/cli/scripting.rb
eco-helpers-1.3.11 lib/eco/cli/scripting.rb
eco-helpers-1.3.10 lib/eco/cli/scripting.rb
eco-helpers-1.3.9 lib/eco/cli/scripting.rb
eco-helpers-1.3.8 lib/eco/cli/scripting.rb
eco-helpers-1.3.7 lib/eco/cli/scripting.rb
eco-helpers-1.3.6 lib/eco/cli/scripting.rb
eco-helpers-1.3.5 lib/eco/cli/scripting.rb