Skip to content

Commit

Permalink
Moving docs to another repository, updated minicli to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
erika committed May 25, 2020
1 parent 8befe9a commit 9fb3b07
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 385 deletions.
1 change: 0 additions & 1 deletion app/Command/Help/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Minicli\App;
use Minicli\Command\CommandController;
use Minicli\Command\CommandRegistry;

class DefaultController extends CommandController
{
Expand Down
26 changes: 26 additions & 0 deletions app/Command/Help/TableController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace App\Command\Help;

use Minicli\Command\CommandController;
use Minicli\Output\Filter\ColorOutputFilter;
use Minicli\Output\Helper\TableHelper;

class TableController extends CommandController
{
public function handle()
{
$this->getPrinter()->display('Testing Tables');

$table = new TableHelper();
$table->addHeader(['Header 1', 'Header 2', 'Header 3']);

for($i = 1; $i <= 10; $i++) {
$table->addRow([$i, rand(0, 10), "other string $i"]);
}

$this->getPrinter()->newline();
$this->getPrinter()->rawOutput($table->getFormattedTable(new ColorOutputFilter()));
$this->getPrinter()->newline();
}
}
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"description": "Minicli Application Template",
"license": "MIT",
"homepage": "https://github.com/minicli/application",
"keywords": ["cli","command-line"],
"keywords": ["cli","command-line", "template"],
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"minimum-stability": "dev",
"require": {
"minicli/minicli": "^1.0"
"minicli/minicli": "^2.0"
}
}
6 changes: 0 additions & 6 deletions docs/about.md

This file was deleted.

143 changes: 0 additions & 143 deletions docs/command_namespaces.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/created_with_minicli.md

This file was deleted.

Loading

0 comments on commit 9fb3b07

Please sign in to comment.