public function run(): int
    {
        $className = $this->console->writeLine('Stubbles ConsoleAppCreator')
                ->writeLine(' (c) 2012-2016 Stubbles Development Group')
                ->writeEmptyLine()
                ->prompt('Please enter the full qualified class name for the console app: ')
                ->withFilter(ClassNameFilter::instance());
        if (null === $className) {
            $this->console->writeLine('The entered class name is not a valid class name');
            return -10;
        }

        $this->classFile->create($className);
        $this->scriptFile->create($className);
        $this->testFile->create($className);
        return 0;
    }