$this->
addOption('sales-channel', 's', InputOption::VALUE_REQUIRED, 'Sales Channel ID. Can not be used together with --all.'
);
$this->
addOption('all', null, InputOption::VALUE_NONE, 'Set theme for all sales channel Can not be used together with -s'
);
$this->
addOption('no-compile', null, InputOption::VALUE_NONE, 'Skip theme compiling'
);
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $themeName =
$input->
getArgument('theme-name'
);
$salesChannelOption =
$input->
getOption('sales-channel'
);
$this->io =
new SymfonyStyle($input,
$output);
$helper =
$this->
getHelper('question'
);
if ($input->
getOption('sales-channel'
) &&
$input->
getOption('all'
)) { $this->io->
error('You can use either --sales-channel or --all, not both at the same time.'
);
return self::INVALID;
} if (!
$themeName) { $question =
new ChoiceQuestion('Please select a theme:',
$this->
getThemeChoices());
$themeName =
$helper->
ask($input,
$output,
$question);
}