Sha256: e002f721471256dec24bfb5db3341789946dacdf51f54ccf319786dd9a8df6f1

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'thor'
require 'socialinvestigator/cli/hn'
require 'socialinvestigator/cli/twitter'

module Socialinvestigator
  class HammerOfTheGods < Thor
    desc "hello NAME", "This will greet you"
    long_desc <<-HELLO_WORLD

    `hello NAME` will print out a message to the person of your choosing.

    Brian Kernighan actually wrote the first "Hello, World!" program 
    as part of the documentation for the BCPL programming language 
    developed by Martin Richards. BCPL was used while C was being 
    developed at Bell Labs a few years before the publication of 
    Kernighan and Ritchie's C book in 1972.

    http://stackoverflow.com/a/12785204
    HELLO_WORLD
    option :upcase
    def hello( name )
      greeting = "Hello, #{name}"
      greeting.upcase! if options[:upcase]
      puts greeting
    end

    desc "hn COMMANDS", "Hacker News Control Module"
    subcommand "hn", Socialinvestigator::CLI::Hn

    desc "twitter COMMANDS", "Twitter Control Module"
    subcommand "twitter", Socialinvestigator::CLI::TwitterCli
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socialinvestigator-0.0.3 lib/socialinvestigator/cli.rb