Sha256: e597476c23e08f5f8297c739110a9df9a5b951019b2a20ae6b90076427974619

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

require 'colored2'
require 'thor'

module YkCommand
  class CLI < Thor
    include Thor::Actions

    desc 'hello', 'hello a world'
    method_option :name, aliases: '-n'
    def hello_world(name)
      say "hello world #{name}", :yellow
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yk_command-0.1.1 lib/yk_command/commands.rb