Sha256: 4566b99757e569237f3c92f2b0c37fdcd807bc5e402b74b079316201889a75dd

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

require 'ronin/ui/cli/command'

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

  summary 'Tests the default task'

  option :foo

  argument :path

  argument :files, :type => Array

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

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