Method: Neocities::CLI#info
- Defined in:
- lib/neocities/cli.rb
#info ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/neocities/cli.rb', line 106 def info resp = @client.info([0] || @sitename) if resp[:result] == 'error' display_response resp exit end out = [] resp[:info].each do |k,v| v = Time.parse(v).localtime if v && (k == :created_at || k == :last_updated) out.push [@pastel.bold(k), v] end puts TTY::Table.new(out).to_s exit end |