Skip to content

Instantly share code, notes, and snippets.

@leafstorm
Created January 16, 2011 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leafstorm/782073 to your computer and use it in GitHub Desktop.
Save leafstorm/782073 to your computer and use it in GitHub Desktop.
Example Thor file for testing using Gists with Thor.
class Hello < Thor
include Thor::Actions
desc "hello NAME", "says hello to the given NAME"
def hello (name="World")
say "Hello, #{name}! It's nice to meet you!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment