getList()); if ($printers->isEmpty()) { $this->error('We could not find any printers! Setup them first :)'); return; } $this->info('Please register the print-server first at:'); $this->info('https://events.anikeen.com/console/resources/print-servers'); $id = $this->ask('What is your print-server ID?'); $password = $this->ask('What is your password?', match ($username) { 'print-cli' => 'print-cli', 'orangepi' => 'orangepi', default => null, }); $this->setConfig([ 'version' => 2, 'id' => $id, 'base_url' => 'https://events.anikeen.com', 'default_credentials' => [ 'username' => $username, 'password' => $password, ], ]); } }