aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-09-05 15:49:25 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-09-05 15:49:25 +0200
commit273c4f2f048a44f20f395f5fdad1b56fbbe61218 (patch)
tree68e9b9065021fa1287781884e6f9b235833c0e95
parentc06ab83bc07c5d362be0b5617ef486106bc0a9ab (diff)
downloadConsole-273c4f2f048a44f20f395f5fdad1b56fbbe61218.zip
Console-273c4f2f048a44f20f395f5fdad1b56fbbe61218.tar.gz
Console-273c4f2f048a44f20f395f5fdad1b56fbbe61218.tar.bz2
chore(path) Move code into the `Source` directory.
-rw-r--r--Source/Chrome/Editor.php (renamed from Chrome/Editor.php)0
-rw-r--r--Source/Chrome/Exception.php (renamed from Chrome/Exception.php)0
-rw-r--r--Source/Chrome/Pager.php (renamed from Chrome/Pager.php)0
-rw-r--r--Source/Chrome/Text.php (renamed from Chrome/Text.php)0
-rw-r--r--Source/Console.php (renamed from Console.php)0
-rw-r--r--Source/Cursor.php (renamed from Cursor.php)0
-rw-r--r--Source/Dispatcher/Kit.php (renamed from Dispatcher/Kit.php)0
-rw-r--r--Source/Exception.php (renamed from Exception.php)0
-rw-r--r--Source/GetOption.php (renamed from GetOption.php)0
-rw-r--r--Source/Input.php (renamed from Input.php)0
-rw-r--r--Source/Mouse.php (renamed from Mouse.php)0
-rw-r--r--Source/Output.php (renamed from Output.php)0
-rw-r--r--Source/Parser.php (renamed from Parser.php)0
-rw-r--r--Source/Processus.php (renamed from Processus.php)0
-rw-r--r--Source/Readline/Autocompleter/Aggregate.php (renamed from Readline/Autocompleter/Aggregate.php)0
-rw-r--r--Source/Readline/Autocompleter/Autocompleter.php (renamed from Readline/Autocompleter/Autocompleter.php)0
-rw-r--r--Source/Readline/Autocompleter/Path.php (renamed from Readline/Autocompleter/Path.php)0
-rw-r--r--Source/Readline/Autocompleter/Word.php (renamed from Readline/Autocompleter/Word.php)0
-rw-r--r--Source/Readline/Password.php (renamed from Readline/Password.php)0
-rw-r--r--Source/Readline/Readline.php (renamed from Readline/Readline.php)0
-rw-r--r--Source/Terminfo/77/windows-ansi (renamed from Terminfo/77/windows-ansi)bin1481 -> 1481 bytes
-rw-r--r--Source/Terminfo/78/xterm (renamed from Terminfo/78/xterm)bin3258 -> 3258 bytes
-rw-r--r--Source/Terminfo/78/xterm-256color (renamed from Terminfo/78/xterm-256color)bin3322 -> 3322 bytes
-rw-r--r--Source/Tput.php (renamed from Tput.php)2
-rw-r--r--Source/Window.php (renamed from Window.php)0
-rw-r--r--Test/Unit/Console.php2
-rw-r--r--Test/Unit/Cursor.php2
-rw-r--r--Test/Unit/Mouse.php2
-rw-r--r--Test/Unit/Tput.php16
-rw-r--r--Test/Unit/Window.php2
-rw-r--r--composer.json4
31 files changed, 16 insertions, 14 deletions
diff --git a/Chrome/Editor.php b/Source/Chrome/Editor.php
index 837cbb8..837cbb8 100644
--- a/Chrome/Editor.php
+++ b/Source/Chrome/Editor.php
diff --git a/Chrome/Exception.php b/Source/Chrome/Exception.php
index 7781d02..7781d02 100644
--- a/Chrome/Exception.php
+++ b/Source/Chrome/Exception.php
diff --git a/Chrome/Pager.php b/Source/Chrome/Pager.php
index a0a7e8c..a0a7e8c 100644
--- a/Chrome/Pager.php
+++ b/Source/Chrome/Pager.php
diff --git a/Chrome/Text.php b/Source/Chrome/Text.php
index 9311726..9311726 100644
--- a/Chrome/Text.php
+++ b/Source/Chrome/Text.php
diff --git a/Console.php b/Source/Console.php
index d2f1589..d2f1589 100644
--- a/Console.php
+++ b/Source/Console.php
diff --git a/Cursor.php b/Source/Cursor.php
index 36fc715..36fc715 100644
--- a/Cursor.php
+++ b/Source/Cursor.php
diff --git a/Dispatcher/Kit.php b/Source/Dispatcher/Kit.php
index c65d754..c65d754 100644
--- a/Dispatcher/Kit.php
+++ b/Source/Dispatcher/Kit.php
diff --git a/Exception.php b/Source/Exception.php
index d3c6ca9..d3c6ca9 100644
--- a/Exception.php
+++ b/Source/Exception.php
diff --git a/GetOption.php b/Source/GetOption.php
index 5e65bcc..5e65bcc 100644
--- a/GetOption.php
+++ b/Source/GetOption.php
diff --git a/Input.php b/Source/Input.php
index 9b0c5bf..9b0c5bf 100644
--- a/Input.php
+++ b/Source/Input.php
diff --git a/Mouse.php b/Source/Mouse.php
index 2b0b6e6..2b0b6e6 100644
--- a/Mouse.php
+++ b/Source/Mouse.php
diff --git a/Output.php b/Source/Output.php
index 0c5807c..0c5807c 100644
--- a/Output.php
+++ b/Source/Output.php
diff --git a/Parser.php b/Source/Parser.php
index 2b2aacc..2b2aacc 100644
--- a/Parser.php
+++ b/Source/Parser.php
diff --git a/Processus.php b/Source/Processus.php
index 48616dc..48616dc 100644
--- a/Processus.php
+++ b/Source/Processus.php
diff --git a/Readline/Autocompleter/Aggregate.php b/Source/Readline/Autocompleter/Aggregate.php
index 88dec76..88dec76 100644
--- a/Readline/Autocompleter/Aggregate.php
+++ b/Source/Readline/Autocompleter/Aggregate.php
diff --git a/Readline/Autocompleter/Autocompleter.php b/Source/Readline/Autocompleter/Autocompleter.php
index 5568258..5568258 100644
--- a/Readline/Autocompleter/Autocompleter.php
+++ b/Source/Readline/Autocompleter/Autocompleter.php
diff --git a/Readline/Autocompleter/Path.php b/Source/Readline/Autocompleter/Path.php
index 5e38560..5e38560 100644
--- a/Readline/Autocompleter/Path.php
+++ b/Source/Readline/Autocompleter/Path.php
diff --git a/Readline/Autocompleter/Word.php b/Source/Readline/Autocompleter/Word.php
index e00790c..e00790c 100644
--- a/Readline/Autocompleter/Word.php
+++ b/Source/Readline/Autocompleter/Word.php
diff --git a/Readline/Password.php b/Source/Readline/Password.php
index a977f29..a977f29 100644
--- a/Readline/Password.php
+++ b/Source/Readline/Password.php
diff --git a/Readline/Readline.php b/Source/Readline/Readline.php
index bffd1e1..bffd1e1 100644
--- a/Readline/Readline.php
+++ b/Source/Readline/Readline.php
diff --git a/Terminfo/77/windows-ansi b/Source/Terminfo/77/windows-ansi
index 5086423..5086423 100644
--- a/Terminfo/77/windows-ansi
+++ b/Source/Terminfo/77/windows-ansi
Binary files differ
diff --git a/Terminfo/78/xterm b/Source/Terminfo/78/xterm
index fec988d..fec988d 100644
--- a/Terminfo/78/xterm
+++ b/Source/Terminfo/78/xterm
Binary files differ
diff --git a/Terminfo/78/xterm-256color b/Source/Terminfo/78/xterm-256color
index d3be7ef..d3be7ef 100644
--- a/Terminfo/78/xterm-256color
+++ b/Source/Terminfo/78/xterm-256color
Binary files differ
diff --git a/Tput.php b/Source/Tput.php
index 9788b38..ebd2a3a 100644
--- a/Tput.php
+++ b/Source/Tput.php
@@ -820,7 +820,7 @@ class Tput
$paths[] = '/usr/local/share/lib/terminfo';
$paths[] = '/usr/local/lib/terminfo';
$paths[] = '/usr/local/ncurses/lib/terminfo';
- $paths[] = 'hoa://Library/Console/Terminfo';
+ $paths[] = 'hoa://Library/Console/Source/Terminfo';
$term = $term ?: static::getTerm();
$fileHexa = dechex(ord($term[0])) . DS . $term;
diff --git a/Window.php b/Source/Window.php
index da9ec64..da9ec64 100644
--- a/Window.php
+++ b/Source/Window.php
diff --git a/Test/Unit/Console.php b/Test/Unit/Console.php
index ffd22f9..759526f 100644
--- a/Test/Unit/Console.php
+++ b/Test/Unit/Console.php
@@ -152,7 +152,7 @@ class Console extends Test\Unit\Suite
public function case_set_tput()
{
$this
- ->given($tput = new LUT\Tput('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new LUT\Tput('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = SUT::setTput($tput))
->then
->variable($result)
diff --git a/Test/Unit/Cursor.php b/Test/Unit/Cursor.php
index 61c5705..529e6f5 100644
--- a/Test/Unit/Cursor.php
+++ b/Test/Unit/Cursor.php
@@ -54,7 +54,7 @@ class Cursor extends Test\Unit\Suite
public function beforeTestMethod($methodName)
{
parent::beforeTestMethod($methodName);
- LUT::setTput(new LUT\Tput('hoa://Library/Console/Terminfo/78/xterm-256color'));
+ LUT::setTput(new LUT\Tput('hoa://Library/Console/Source/Terminfo/78/xterm-256color'));
return;
}
diff --git a/Test/Unit/Mouse.php b/Test/Unit/Mouse.php
index 6a51245..40aafda 100644
--- a/Test/Unit/Mouse.php
+++ b/Test/Unit/Mouse.php
@@ -55,7 +55,7 @@ class Mouse extends Test\Unit\Suite
public function beforeTestMethod($methodName)
{
parent::beforeTestMethod($methodName);
- LUT::setTput(new LUT\Tput('hoa://Library/Console/Terminfo/78/xterm-256color'));
+ LUT::setTput(new LUT\Tput('hoa://Library/Console/Source/Terminfo/78/xterm-256color'));
return;
}
diff --git a/Test/Unit/Tput.php b/Test/Unit/Tput.php
index 4a776be..3759692 100644
--- a/Test/Unit/Tput.php
+++ b/Test/Unit/Tput.php
@@ -95,12 +95,12 @@ class Tput extends Test\Unit\Suite
public function case_all_informations()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->getInformations())
->then
->array($result)
->isIdenticalTo([
- 'file' => 'hoa://Library/Console/Terminfo/78/xterm',
+ 'file' => 'hoa://Library/Console/Source/Terminfo/78/xterm',
'headers' => [
'data_size' => 3258,
'header_size' => 12,
@@ -347,7 +347,7 @@ class Tput extends Test\Unit\Suite
public function case_has()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->has('auto_left_margin'))
->then
->boolean($result)
@@ -362,7 +362,7 @@ class Tput extends Test\Unit\Suite
public function case_has_unknown_boolean()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->has('💩'))
->then
->boolean($result)
@@ -372,7 +372,7 @@ class Tput extends Test\Unit\Suite
public function case_count()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->count('columns'))
->then
->integer($result)
@@ -382,7 +382,7 @@ class Tput extends Test\Unit\Suite
public function case_count_unknown_integer()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->count('💩'))
->then
->integer($result)
@@ -392,7 +392,7 @@ class Tput extends Test\Unit\Suite
public function case_get()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->get('cursor_down'))
->then
->string($result)
@@ -402,7 +402,7 @@ class Tput extends Test\Unit\Suite
public function case_get_unknown_string()
{
$this
- ->given($tput = new SUT('hoa://Library/Console/Terminfo/78/xterm'))
+ ->given($tput = new SUT('hoa://Library/Console/Source/Terminfo/78/xterm'))
->when($result = $tput->get('💩'))
->then
->variable($result)
diff --git a/Test/Unit/Window.php b/Test/Unit/Window.php
index 4d8258a..590d88d 100644
--- a/Test/Unit/Window.php
+++ b/Test/Unit/Window.php
@@ -54,7 +54,7 @@ class Window extends Test\Unit\Suite
public function beforeTestMethod($methodName)
{
parent::beforeTestMethod($methodName);
- LUT::setTput(new LUT\Tput('hoa://Library/Console/Terminfo/78/xterm-256color'));
+ LUT::setTput(new LUT\Tput('hoa://Library/Console/Source/Terminfo/78/xterm-256color'));
return;
}
diff --git a/composer.json b/composer.json
index 6b6bac2..801d1a6 100644
--- a/composer.json
+++ b/composer.json
@@ -39,7 +39,9 @@
},
"autoload": {
"psr-4": {
- "Hoa\\Console\\": "."
+ "Hoa\\Console\\" : "Source",
+ "Hoa\\Console\\Bin\\" : "Bin",
+ "Hoa\\Console\\Test\\": "Test"
}
},
"suggest": {