Sha256: c5857a033f2fb59833194386ae2ff6f3cd7ab5ea6969736a78179edf8a3835dd

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

require 'thor'

module Telegrator
  class CLI < Thor
    desc 'version', 'Print version info'
    def version
      say "Telegrator #{Telegrator::VERSION}"
    end
    map %w[-v --version] => :version

    register(
      Generators::Bot,
      'bot',
      'bot',
      'Generate a skeleton for creating a new bot'
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telegrator-0.3.1 lib/telegrator/cli.rb