Skip to content

Commit 9fb3b07

Browse files
author
erika
committed
Moving docs to another repository, updated minicli to 2.0
1 parent 8befe9a commit 9fb3b07

9 files changed

+29
-385
lines changed

app/Command/Help/DefaultController.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Minicli\App;
66
use Minicli\Command\CommandController;
7-
use Minicli\Command\CommandRegistry;
87

98
class DefaultController extends CommandController
109
{

app/Command/Help/TableController.php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace App\Command\Help;
4+
5+
use Minicli\Command\CommandController;
6+
use Minicli\Output\Filter\ColorOutputFilter;
7+
use Minicli\Output\Helper\TableHelper;
8+
9+
class TableController extends CommandController
10+
{
11+
public function handle()
12+
{
13+
$this->getPrinter()->display('Testing Tables');
14+
15+
$table = new TableHelper();
16+
$table->addHeader(['Header 1', 'Header 2', 'Header 3']);
17+
18+
for($i = 1; $i <= 10; $i++) {
19+
$table->addRow([$i, rand(0, 10), "other string $i"]);
20+
}
21+
22+
$this->getPrinter()->newline();
23+
$this->getPrinter()->rawOutput($table->getFormattedTable(new ColorOutputFilter()));
24+
$this->getPrinter()->newline();
25+
}
26+
}

composer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"description": "Minicli Application Template",
44
"license": "MIT",
55
"homepage": "https://github.com/minicli/application",
6-
"keywords": ["cli","command-line"],
6+
"keywords": ["cli","command-line", "template"],
77
"autoload": {
88
"psr-4": {
99
"App\\": "app/"
1010
}
1111
},
12+
"minimum-stability": "dev",
1213
"require": {
13-
"minicli/minicli": "^1.0"
14+
"minicli/minicli": "^2.0"
1415
}
1516
}

docs/about.md

-6
This file was deleted.

docs/command_namespaces.md

-143
This file was deleted.

docs/created_with_minicli.md

-3
This file was deleted.

0 commit comments

Comments
 (0)