Esempio n. 1
0
 public function __construct(array $config = [])
 {
     $this->climate = new CLImate();
     self::$CI =& get_instance();
     $this->climate->addArt($config['art_directory']);
     $this->climate->setArgumentManager(new Arguments\Manager());
     $this->climate->extend(Extensions\Tab::class, 'tab');
     $this->climate->arguments->description('Yet another Codeigniter Starter Application');
     $this->climate->arguments->add(['help' => ['prefix' => 'h', 'longPrefix' => 'help', 'description' => static::lang('console_display_help'), 'noValue' => true]]);
     if (!empty($config['available_commands']) && is_array($config['available_commands'])) {
         $this->addCommands($config['available_commands']);
     }
 }