class Dotfiler::CLI::Commands::Command

Private Instance Methods

error!(message) click to toggle source
# File lib/dotfiler/cli/commands/command.rb, line 25
def error!(message)
  terminate!(:error, message: message)
end
handle_errors() { || ... } click to toggle source
# File lib/dotfiler/cli/commands/command.rb, line 9
def handle_errors(&block)
  begin
    yield
  rescue Dotfiler::Error => e
    error!(e.message)
  end
end
info(message) click to toggle source
# File lib/dotfiler/cli/commands/command.rb, line 21
def info(message)
  print(message, :info)
end
print(*args) click to toggle source
prompt(*args) click to toggle source
# File lib/dotfiler/cli/commands/command.rb, line 33
def prompt(*args)
  shell.prompt(*args)
end
terminate!(*args) click to toggle source
# File lib/dotfiler/cli/commands/command.rb, line 29
def terminate!(*args)
  shell.terminate(*args)
end