protected function execute(InputInterface $input, OutputInterface $output) { $config = AppConfig::factory('.slackpipe'); $token = Utils::rand(32); if ($config->write(['app_key' => $token]) !== false) { $output->writeln('Token written to file: ' . $config->filePath()); } else { $output->writeln('Nothing written..'); } }