private function getActivities(InputInterface $input, $limit = 0)
    {
        if ($this->hasSelectedEnvironment() && !$input->getOption('all')) {
            return $this->getSelectedEnvironment()
                ->getActivities($limit, $input->getOption('type'));
        }

        return $this->getSelectedProject()
            ->getActivities($limit, $input->getOption('type'));
    }