Sha256: 328ff4ae4cc680c5e28ab3f930d204ed909f8bc66e8d253993e29962b8ceb7f3

Contents?: true

Size: 560 Bytes

Versions: 8

Compression:

Stored size: 560 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'command_lion'
require 'pry'

cmd = CommandLion::Command.build do
  index :example
  description "An example, could you guess?"
  action do
    puts "Works!"
  end
end

cmd2 = CommandLion::Command.build do
  index :example2
  description "Anouther example, could you guess?"
  action do
    puts "Works like a charm!"
  end
end

CommandLion::App.run do
  name "Plugin Example"
  description "A simple application that uses command lion's plugin command system."
  plugin cmd
  plugin cmd2
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
command_lion-2.0.1 examples/plugin.rb
command_lion-2.0.0 examples/plugin.rb
command_lion-1.0.4 examples/plugin.rb
command_lion-1.0.3geff examples/plugin.rb
command_lion-1.0.3 examples/plugin.rb
command_lion-1.0.2 examples/plugin.rb
command_lion-1.0.1 examples/plugin.rb
command_lion-1.0.0 examples/plugin.rb