error('This command may only run in development mode.'); return self::FAILURE; } $profiles = config('development-qemu.profiles'); $profileNames = $this->argument('profiles') ?: multiselect( label: 'Which QEMU servers should be started and seeded?', options: collect($profiles)->mapWithKeys(fn (array $profile, string $key) => [$key => $profile['label']])->all(), required: true, ); if ($this->option('as-localhost') && count($profileNames) !== 1) { $this->error('Select exactly one QEMU profile for localhost.'); return self::FAILURE; } ManageDevelopmentQemuVm::run($profileNames, (bool) $this->option('as-localhost'), (bool) $this->option('fresh')); foreach ($profileNames as $profileName) { $profile = $profiles[$profileName]; $this->info("Started and seeded {$profile['label']} at {$profile['ip']}."); } return self::SUCCESS; } }