Method: Jenkins::CLI::Formatting::ClassMethods#task_help

Defined in:
lib/jenkins/cli/formatting.rb

#task_help(shell, task_name) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/jenkins/cli/formatting.rb', line 7

def task_help(shell, task_name)
  meth = normalize_task_name(task_name)
  task = all_tasks[meth]
  handle_no_task_error(meth) unless task

  shell.say "usage: #{banner(task)}"
  shell.say
  class_options_help(shell, nil => task.options.map { |_, o| o })
  # shell.say task.description
  # shell.say
end