src/Console/BinMakeCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        Whois::print(new NotifyConsole($output));

        $stub = file_get_contents(__DIR__ . '/stubs/bin.stub');

        if (file_exists($input->getArgument('name'))) {
            $output->writeln('');
            $output->writeln('<info>File exists</info>');
        }

        file_put_contents($input->getArgument('name'), $stub, LOCK_EX);
        chmod($input->getArgument('name'), 0750);

        $output->writeln('');
        $output->writeln('<info>Binary file created</info>');
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        Whois::print(new NotifyConsole($output));

        $stub = file_get_contents(__DIR__ . '/stubs/bin.stub');

        if (file_exists($input->getArgument('name'))) {
            $output->writeln('');
            $output->writeln('<info>File exists</info>');
        }

        file_put_contents($input->getArgument('name'), $stub, LOCK_EX);
        chmod($input->getArgument('name'), 0750);

        $output->writeln('');
        $output->writeln('<info>Binary file created</info>');
    }
Execute command, captain.

@param \Symfony\Component\Console\Input\InputInterface $input
@param \Symfony\Component\Console\Output\OutputInterface $output
@return int|null|void