Class Gitlab::CLI
In: lib/gitlab/cli.rb
lib/gitlab/cli_helpers.rb
Parent: Object

Methods

render_output   run   start  

Classes and Modules

Module Gitlab::CLI::Helpers

Public Class methods

Helper method that checks whether we want to get the output as json @return [nil]

Processes a CLI command and outputs a result to the stream (stdout).

@example

  Gitlab::CLI.run('help')
  Gitlab::CLI.run('help', ['issues'])

@param [String] cmd The name of a command. @param [Array] args The optional arguments for a command. @return [nil]

Starts a new CLI session.

@example

  Gitlab::CLI.start(['help'])
  Gitlab::CLI.start(['help', 'issues'])

@param [Array] args The command and it‘s optional arguments.

[Validate]