Sha256: 5d33e04813f88ab62e884716f4c6a34cbe9cc6d3ae79cd7723793f3a406b9c21

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

module Tap
  module Tasks
    # :startdoc::manifest provides a handle to ARGV
    #
    # Simply returns ARGV.  This task can be a useful hook when executing
    # saved workflows via run (given that all arguments after the workflow
    # file are preserved in ARGV).
    #
    #   # [workflow.yml]
    #   # - - argv
    #   # - - dump/yaml
    #   # - 0[1]
    #
    #   % tap run -w workflow.yml a b c
    #   ---
    #   - a
    #   - b
    #   - c
    #   
    class Argv < Tap::Task
      
      # Simply returns ARGV.
      def process
        ARGV
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tap-tasks-0.1.0 lib/tap/tasks/argv.rb