Sha256: 16733192a1b23e8cec7faa3a9c2a1756063f4fe211767a31aebc654f192406c7

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

require 'ronin/ui/cli/command'

class TestCommand < Ronin::UI::CLI::Command

  summary 'Tests the default task'

  usage '[options] PATH FILE [..]'

  examples [
    'test_command --foo PATH',
    'test_command --foo PATH FILE ...'
  ]

  option :foo

  argument :path

  argument :files, :type => Array

  def execute
    if @foo
      'foo task'
    else
      'default task'
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-1.5.0 spec/ui/cli/classes/test_command.rb
ronin-1.5.0.rc2 spec/ui/cli/classes/test_command.rb
ronin-1.5.0.rc1 spec/ui/cli/classes/test_command.rb