How can call function from block to cli command magento 2 here is my cli command class
class Hicustomer extends Command
{
protected function configure()
{
$this->setName('cloudways:hicustomer');
$this->setDescription('Demo command line');
parent::configure();
}
protected function execute(InputInterface $input, OutputInterface $output)
{
//call function from block
$output->writeln("Hi Customer");
}
}