class Travis::CLI::Sync

def run

def run
  authenticate
  if check?
    say "#{'not ' unless user.syncing?}syncing", "#{user.login} is currently %s"
  elsif user.syncing? && !force?
    error 'user is already syncing'
  elsif background?
    say 'starting synchronization'
    sync(false)
  else
    say 'synchronizing: '
    sync
    say color(' done', :success)
  end
end