Skip to content

Instantly share code, notes, and snippets.

@dhrrgn
Created December 7, 2010 01:58
Show Gist options
  • Save dhrrgn/731351 to your computer and use it in GitHub Desktop.
Save dhrrgn/731351 to your computer and use it in GitHub Desktop.
example usage of the Cli class
<?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