Class: Neetob::CLI::Github::Issues::Commands

Inherits:
SubCommandBase show all
Defined in:
lib/neetob/cli/github/issues/commands.rb

Constant Summary collapse

REPOS_OPTION =
{
  type: :array,
  aliases: "-r",
  required: true,
  desc: 'Github repo names. Can be matched using the "*" wildcard. Example: "neeto*" "neeto-cal-web". Providing "all" matches all neeto repos.'
}.freeze

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#createObject



42
43
44
45
46
47
48
49
50
51
# File 'lib/neetob/cli/github/issues/commands.rb', line 42

def create
  Create.new(
    options[:repos],
    options[:title],
    options[:description],
    options[:assignee],
    options[:labels],
    options[:sandbox]
  ).run
end

#create_product_sub_issuesObject



55
56
57
# File 'lib/neetob/cli/github/issues/commands.rb', line 55

def create_product_sub_issues
  CreateProductSubIssues.new(options[:issue_number], options[:sandbox]).run
end

#listObject



30
31
32
33
34
# File 'lib/neetob/cli/github/issues/commands.rb', line 30

def list
  List.new(
    options[:repos], options[:assignee], options[:state], options[:search], options[:count],
    options[:label], options[:sandbox]).run
end