Created
December 7, 2010 01:58
-
-
Save dhrrgn/731351 to your computer and use it in GitHub Desktop.
example usage of the Cli class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Fuel\Application; | |
class Controller_Install extends Controller\Base { | |
public function action_index() | |
{ | |
CLI::write(Cli::color('Getting ready to Install!', 'blue')); | |
Cli::write("We need some information first.\n"); | |
$path = Cli::read('Where would you like to install?'); | |
Cli::write('Please wait while we install...'); | |
// Pretend we are installing something here | |
Cli::wait(5); | |
Cli::beep(); | |
Cli::write('Complete!'); | |
Cli::wait(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment