Class: Blitz::Command::Account

Inherits:
Blitz::Command show all
Defined in:
lib/blitz/command/account.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Blitz::Command

Api

Instance Method Summary collapse

Methods included from Utils

#shift

Methods included from Helper

#ask, #error, #msg

Instance Method Details

#cmd_about(args) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/blitz/command/account.rb', line 6

def cmd_about args
     = Command::API.client.
    if ['_id'] == 'anonymous'
        error red('Invalid credentials. Use api:init to login first')
        return
    end
    
    puts "email:      #{green(['profile']['email'])}"
    puts "created_at: #{['created_at']}"
    puts "updated_at: #{['created_at']}"
    puts "uuid:       #{yellow(['uuid'])}"
end