Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update about

  • Loading branch information...
commit 39c791fa4afed13166746c0fb03a2dda765c138e 1 parent 6de674b
@naoty authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 about
View
7 about
@@ -16,8 +16,13 @@ class CuiAboutMeClient < Thor
end
desc 'show USERNAME', 'curl http://cui-about.me/USERNAME'
+ method_option :item, aliases: '-i'
def show(username)
- system "curl #{ROOT_PATH}/#{username}"
+ if options[:item]
+ system "curl #{ROOT_PATH}/#{username}/#{options[:item]}"
+ else
+ system "curl #{ROOT_PATH}/#{username}"
+ end
end
desc 'create USERNAME', "curl -X POST -d 'name=USERNAME' -d 'password=PASSWORD' http://cui-about.me/signup"
Please sign in to comment.
Something went wrong with that request. Please try again.