Module Gitlab::CLI::Helpers
In: lib/gitlab/cli_helpers.rb

Defines methods related to CLI output and formatting.

Methods

Public Instance methods

Returns actions available to CLI & Shell

@return [Array]

Returns Gitlab::Client instance

@return [Gitlab::Client]

Confirms command with a desctructive action.

@return [String]

Returns filtered excluded fields.

@return [Array]

Helper function to get rows and keys from data returned from API call

Helper function to call Gitlab commands with args.

Gets defined help for a specific command/action.

@return [String]

Returns method names and their owners

@return [Array<Hash>]

Outputs a nicely formatted table or error msg.

Renders the result of given commands and arguments into a Hash

@param [Array] data Resultset from the API call @param [String] cmd The command passed to the API @param [Array] args Options passed to the API call @param [bool] single_value If set to true, a single result should be returned @return [Hash] Result hash

Table to display records.

@return [Terminal::Table]

Returns filtered required fields.

@return [Array]

Convert a hash (recursively) to use symbol hash keys @return [Hash]

Confirms command is valid.

@return [Boolean]

YAML::load on a single argument

[Validate]