Class: TrelloCli::CLI::Commands::Card

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/trello_cli/cli/commands/card.rb

Instance Method Summary collapse

Methods included from Shared

#actions, #ensure_credential_envs_set, #help, #shared_methods, #target_name

Instance Method Details

#createObject



8
9
10
11
12
13
14
# File 'lib/trello_cli/cli/commands/card.rb', line 8

def create
  ensure_credential_envs_set
  TrelloCli::CLI::Card::Create.new.run
rescue TrelloCli::Errors => e
  puts "error: #{e}"
  exit 1
end

#listObject



16
17
18
19
# File 'lib/trello_cli/cli/commands/card.rb', line 16

def list
  ensure_credential_envs_set
  TrelloCli::CLI::Card::List.new.run
end

#moveObject



21
22
23
24
# File 'lib/trello_cli/cli/commands/card.rb', line 21

def move
  ensure_credential_envs_set
  TrelloCli::CLI::Card::Move.new.run
end