zmshurik/project-lvl1-s152

View on GitHub
src/Cli.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace BrainGames\Cli;

use function \cli\line;
use function \cli\prompt;

function run()
{
    line('Welcome to the Brain Games!');
    line();
    $name = prompt('May I have your name?');
    line("Hello, %s!", $name);
}