Skip to content

Commit 7296778

Browse files
committed
Adds CLImate for future improvements to git-deploy-php's output.
1 parent 867f2ff commit 7296778

File tree

102 files changed

+8204
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+8204
-12
lines changed

tools/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"require": {
3-
"phpseclib/phpseclib": "^2.0"
3+
"phpseclib/phpseclib": "^2.0",
4+
"league/climate": "^3.2"
45
}
56
}

tools/composer.lock

Lines changed: 101 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/vendor/composer/ClassLoader.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
namespace Composer\Autoload;
1414

1515
/**
16-
* ClassLoader implements a PSR-0 class loader
17-
*
18-
* See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
16+
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
1917
*
2018
* $loader = new \Composer\Autoload\ClassLoader();
2119
*
@@ -39,6 +37,8 @@
3937
*
4038
* @author Fabien Potencier <fabien@symfony.com>
4139
* @author Jordi Boggiano <j.boggiano@seld.be>
40+
* @see http://www.php-fig.org/psr/psr-0/
41+
* @see http://www.php-fig.org/psr/psr-4/
4242
*/
4343
class ClassLoader
4444
{
@@ -147,7 +147,7 @@ public function add($prefix, $paths, $prepend = false)
147147
* appending or prepending to the ones previously set for this namespace.
148148
*
149149
* @param string $prefix The prefix/namespace, with trailing '\\'
150-
* @param array|string $paths The PSR-0 base directories
150+
* @param array|string $paths The PSR-4 base directories
151151
* @param bool $prepend Whether to prepend the directories
152152
*
153153
* @throws \InvalidArgumentException

tools/vendor/composer/autoload_psr4.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77

88
return array(
99
'phpseclib\\' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
10+
'Seld\\CliPrompt\\' => array($vendorDir . '/seld/cli-prompt/src'),
11+
'League\\CLImate\\' => array($vendorDir . '/league/climate/src'),
1012
);

tools/vendor/composer/autoload_real.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,3 @@ public static function getLoader()
4747
return $loader;
4848
}
4949
}
50-
51-
function composerRequirea4da7c5d52cca3ed47e4029a432dc051($file)
52-
{
53-
require $file;
54-
}

tools/vendor/composer/installed.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,108 @@
8888
"x.509",
8989
"x509"
9090
]
91+
},
92+
{
93+
"name": "seld/cli-prompt",
94+
"version": "1.0.0",
95+
"version_normalized": "1.0.0.0",
96+
"source": {
97+
"type": "git",
98+
"url": "https://github.com/Seldaek/cli-prompt.git",
99+
"reference": "fe114c7a6ac5cb0ce76932ae4017024d9842a49c"
100+
},
101+
"dist": {
102+
"type": "zip",
103+
"url": "https://api.github.com/repos/Seldaek/cli-prompt/zipball/fe114c7a6ac5cb0ce76932ae4017024d9842a49c",
104+
"reference": "fe114c7a6ac5cb0ce76932ae4017024d9842a49c",
105+
"shasum": ""
106+
},
107+
"require": {
108+
"php": ">=5.3"
109+
},
110+
"time": "2015-04-30 20:24:49",
111+
"type": "library",
112+
"extra": {
113+
"branch-alias": {
114+
"dev-master": "1.x-dev"
115+
}
116+
},
117+
"installation-source": "dist",
118+
"autoload": {
119+
"psr-4": {
120+
"Seld\\CliPrompt\\": "src/"
121+
}
122+
},
123+
"notification-url": "https://packagist.org/downloads/",
124+
"license": [
125+
"MIT"
126+
],
127+
"authors": [
128+
{
129+
"name": "Jordi Boggiano",
130+
"email": "j.boggiano@seld.be"
131+
}
132+
],
133+
"description": "Allows you to prompt for user input on the command line, and optionally hide the characters they type",
134+
"keywords": [
135+
"cli",
136+
"console",
137+
"hidden",
138+
"input",
139+
"prompt"
140+
]
141+
},
142+
{
143+
"name": "league/climate",
144+
"version": "3.2.0",
145+
"version_normalized": "3.2.0.0",
146+
"source": {
147+
"type": "git",
148+
"url": "https://github.com/thephpleague/climate.git",
149+
"reference": "834cb907c89eb31e2171b68ee25c0ed26c8f34f4"
150+
},
151+
"dist": {
152+
"type": "zip",
153+
"url": "https://api.github.com/repos/thephpleague/climate/zipball/834cb907c89eb31e2171b68ee25c0ed26c8f34f4",
154+
"reference": "834cb907c89eb31e2171b68ee25c0ed26c8f34f4",
155+
"shasum": ""
156+
},
157+
"require": {
158+
"php": ">=5.4.0",
159+
"seld/cli-prompt": "~1.0"
160+
},
161+
"require-dev": {
162+
"mikey179/vfsstream": "~1.4",
163+
"mockery/mockery": "dev-master",
164+
"phpunit/phpunit": "~4.6"
165+
},
166+
"time": "2015-08-13 16:50:51",
167+
"type": "library",
168+
"installation-source": "dist",
169+
"autoload": {
170+
"psr-4": {
171+
"League\\CLImate\\": "src/"
172+
}
173+
},
174+
"notification-url": "https://packagist.org/downloads/",
175+
"license": [
176+
"MIT"
177+
],
178+
"authors": [
179+
{
180+
"name": "Joe Tannenbaum",
181+
"email": "hey@joe.codes",
182+
"homepage": "http://joe.codes/",
183+
"role": "Developer"
184+
}
185+
],
186+
"description": "PHP's best friend for the terminal. CLImate allows you to easily output colored text, special formats, and more.",
187+
"keywords": [
188+
"cli",
189+
"colors",
190+
"command",
191+
"php",
192+
"terminal"
193+
]
91194
}
92195
]
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
## 3.2.0 - 2015-08-13
2+
3+
### Added
4+
- Multi-line support for `input` method [https://github.com/thephpleague/climate/pull/67](https://github.com/thephpleague/climate/pull/67)
5+
- `extend` method for _much_ easier extending of CLImate
6+
7+
### Fixed
8+
- Unnecessary progress bar re-drawing when the output hadn't changed [https://github.com/thephpleague/climate/pull/69](https://github.com/thephpleague/climate/pull/69)
9+
- Progress label no longer removed once progress reaches 100%
10+
- Non-prefixed paramaters for `arguments` method now show in usage description [https://github.com/thephpleague/climate/issues/65](https://github.com/thephpleague/climate/issues/65)
11+
12+
## 3.1.1 - 2015-05-01
13+
14+
### Fixed
15+
- Windows support added for `password` thanks to @Seldaek and [seld/cli-prompt](https://packagist.org/packages/seld/cli-prompt)
16+
17+
## 3.1.0 - 2015-04-30
18+
19+
### Added
20+
- `password` prompt
21+
- `checkboxes` prompt
22+
- `radio` prompt
23+
- 'file' as output option
24+
25+
## 3.0.0 - 2015-03-01
26+
27+
### Changed
28+
29+
- Custom output writers are added simply via the `output` property on CLImate now, as opposed to the immense amount of scaffolding required before
30+
31+
### Added
32+
33+
- Argument parsing
34+
- StdErr output
35+
- Buffer output
36+
- `animate` method for running ASCII animations in the terminal. Because it's fun.
37+
- Input now bolds the default response if it exists
38+
39+
## 2.6.1 - 2015-01-18
40+
41+
### Fixed
42+
43+
- Added `forceAnsiOn` and `forceAnsiOff` methods to address systems that were not identified correctly
44+
45+
## 2.6.0 - 2015-01-07
46+
47+
### Added
48+
49+
- Allow for passing an array of arrays into `columns` method
50+
- `tab` method, for indenting text
51+
- `padding` method, for padding strings to an equal width with a character
52+
- `League\CLImate\TerminalObject\Repeatable` for repeatable objects such as `tab` and `br`
53+
- `League\CLImate\Decorator\Parser\Ansi` and `League\CLImate\Decorator\Parser\NonAnsi`
54+
- Factories:
55+
+ `League\CLImate\Decorator\Parser\ParserFactory`
56+
+ `League\CLImate\Util\System\SystemFactory`
57+
- Terminal Objects now are appropriately namespaced as `Basic` or `Dynamic`
58+
- Readers and Writers are appropriately namespaced as such under `League\CLImate\Util`
59+
60+
### Fixed
61+
62+
- Labels for `advance` method
63+
- Non-ansi terminals will now have plaintext output instead of jumbled characters
64+
- `border` method now default to full terminal width
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Joe Tannenbaum
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)