/**
  * Execute this command.
  *
  * @return int|void
  */
 protected function doExecute()
 {
     $tableModel = new Table();
     if ($this->getOption('a')) {
         $profiles = ProfileHelper::getAllProfiles();
     } else {
         $profiles = $this->io->getArguments() ?: array(ProfileHelper::getProfile());
     }
     $config = Factory::getConfig();
     foreach ($profiles as $profile) {
         $config->set('profile', $profile);
         $tableModel->sync();
         $path = $tableModel->getState()->get('track.save.path');
         $this->out()->out('Sync all tracking status to: ' . $path);
     }
     return;
 }