Method: Gitlab::CLI.render_output
- Defined in:
- lib/gitlab/cli.rb
permalink .render_output(cmd, args, data) ⇒ nil
Helper method that checks whether we want to get the output as json
82 83 84 85 86 87 88 |
# File 'lib/gitlab/cli.rb', line 82 def self.render_output(cmd, args, data) if defined?(@json_output) && @json_output output_json(cmd, args, data) else output_table(cmd, args, data) end end |