Class: Neetob::CLI::Github::Labels::Commands

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

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#deleteObject



51
52
53
# File 'lib/neetob/cli/github/labels/commands.rb', line 51

def delete
  Delete.new(options[:repos], options[:labels], options[:sandbox]).run
end

#delete_allObject



45
46
47
# File 'lib/neetob/cli/github/labels/commands.rb', line 45

def delete_all
  DeleteAll.new(options[:repos], options[:sandbox]).run
end

#listObject



23
24
25
# File 'lib/neetob/cli/github/labels/commands.rb', line 23

def list
  List.new(options[:repos], options[:sandbox]).run
end

#showObject



29
30
31
# File 'lib/neetob/cli/github/labels/commands.rb', line 29

def show
  Show.new(options[:repos], options[:name], options[:sandbox]).run
end

#updateObject



58
59
60
61
# File 'lib/neetob/cli/github/labels/commands.rb', line 58

def update
  Update.new(
    options[:repos], options[:old_name], options[:new_name], options[:sandbox]).run
end

#upsertObject



38
39
40
41
42
# File 'lib/neetob/cli/github/labels/commands.rb', line 38

def upsert
  Upsert.new(
    options[:repos], options[:path], options[:sandbox], options[:name],
    options[:color], options[:description]).run
end