Method: Gitlab::CLI.start

Defined in:
lib/gitlab/cli.rb

.start(args) ⇒ Object

Starts a new CLI session.

Examples:

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

Parameters:

  • args (Array)

    The command and it’s optional arguments.

[View source]

18
19
20
21
22
23
24
25
# File 'lib/gitlab/cli.rb', line 18

def self.start(args)
  command = begin
    args.shift.strip
  rescue StandardError
    'help'
  end
  run(command, args)
end