Module: GitWand::CLI::Command::CurrentUserInfo
- Defined in:
- lib/git_wand/cli/command/current_user_info.rb
Class Method Summary collapse
Class Method Details
.perform(client:) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/git_wand/cli/command/current_user_info.rb', line 6 def self.perform(client:) result = client.current_user_info if result.success? puts "[success] Current user info" puts "- username: #{result.body["login"]}" puts "- profile URL: #{result.body["html_url"]}" else puts "[error] #{result.body["message"]}" end end |