Updated README and CHANGELOG for 1.1.1

This commit is contained in:
Alannah Kearney 2019-05-23 16:20:05 +10:00
commit f520bc4323
3 changed files with 16 additions and 4 deletions

View file

@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
**View all [Unreleased][] changes here** **View all [Unreleased][] changes here**
## [1.1.1][]
#### Added
- Added `get_window_size()` function
## [1.1.0][] ## [1.1.0][]
#### Added #### Added
- Added `manpage` and `usage` functions - Added `manpage` and `usage` functions
@ -17,5 +21,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
#### Added #### Added
- Initial release - Initial release
[Unreleased]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.0...integration [Unreleased]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.1...integration
[1.1.1]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/pointybeard/helpers-functions-cli/compare/1.0.0...1.1.0 [1.1.0]: https://github.com/pointybeard/helpers-functions-cli/compare/1.0.0...1.1.0

View file

@ -1,7 +1,7 @@
# PHP Helpers: Command-line Functions # PHP Helpers: Command-line Functions
- Version: v1.1.0 - Version: v1.1.1
- Date: May 20 2019 - Date: May 23 2019
- [Release notes](https://github.com/pointybeard/helpers-functions-cli/blob/master/CHANGELOG.md) - [Release notes](https://github.com/pointybeard/helpers-functions-cli/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/helpers-functions-cli) - [GitHub repository](https://github.com/pointybeard/helpers-functions-cli)
@ -32,6 +32,7 @@ The following functions are provided:
- `is_su() : bool` - `is_su() : bool`
- `usage(string $name, Cli\Input\InputCollection $collection) : string` - `usage(string $name, Cli\Input\InputCollection $collection) : string`
- `manpage(string $name, string $version, string $description, string $example, Cli\Input\InputCollection $collection): string` - `manpage(string $name, string $version, string $description, string $example, Cli\Input\InputCollection $collection): string`
- `get_window_size(): array`
Example usage: Example usage:
@ -50,6 +51,12 @@ var_dump(Cli\can_invoke_bash());
var_dump(Cli\is_su()); var_dump(Cli\is_su());
// bool(false) // bool(false)
var_dump(Cli\get_window_size());
// array(2) {
// 'cols' => string(3) "103"
// 'lines' => string(2) "68"
// }
echo Cli\manpage( echo Cli\manpage(
'test', 'test',
'1.0.0', '1.0.0',

View file

@ -1,6 +1,6 @@
{ {
"name": "pointybeard/helpers-functions-cli", "name": "pointybeard/helpers-functions-cli",
"version": "1.1.0", "version": "1.1.1",
"description": "A collection of functions relating to the command-line", "description": "A collection of functions relating to the command-line",
"homepage": "https://github.com/pointybeard/helpers-functions-cli", "homepage": "https://github.com/pointybeard/helpers-functions-cli",
"license": "MIT", "license": "MIT",