Method: VMC::Cli::Command::Misc#frameworks

Defined in:
lib/cli/commands/misc.rb

#frameworksObject



83
84
85
86
87
88
89
90
91
92
93
# File 'lib/cli/commands/misc.rb', line 83

def frameworks
  raise VMC::Client::AuthError unless client.logged_in?
  return display JSON.pretty_generate(frameworks_info) if @options[:json]
  return display "No Frameworks" if frameworks_info.empty?
  rtable = table do |t|
    t.headings = ['Name']
    frameworks_info.each { |f| t << f }
  end
  display "\n"
  display rtable
end