lib/githuh/cli/commands/user/info.rb in githuh-0.1.0 vs lib/githuh/cli/commands/user/info.rb in githuh-0.1.2

- old
+ new

@@ -4,20 +4,21 @@ # vim: ft=ruby require "bundler/setup" require "dry/cli" require_relative '../base' require 'awesome_print' +require 'json' module Githuh module CLI module Commands module User class Info < Base desc "Print user information" def call(**opts) super(**opts) - ap client.user.to_hash + puts JSON.pretty_generate(client.user.to_hash) end end end register "user", aliases: ["u"] do |prefix|