From f520bc432379adacad6b8822e911f5873914318b Mon Sep 17 00:00:00 2001 From: Alannah Kearney Date: Thu, 23 May 2019 16:20:05 +1000 Subject: [PATCH] Updated README and CHANGELOG for 1.1.1 --- CHANGELOG.md | 7 ++++++- README.md | 11 +++++++++-- composer.json | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f92e858..26d0a84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). **View all [Unreleased][] changes here** +## [1.1.1][] +#### Added +- Added `get_window_size()` function + ## [1.1.0][] #### Added - Added `manpage` and `usage` functions @@ -17,5 +21,6 @@ This project adheres to [Semantic Versioning](http://semver.org/). #### Added - 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 diff --git a/README.md b/README.md index 85a1a8a..69c140e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # PHP Helpers: Command-line Functions -- Version: v1.1.0 -- Date: May 20 2019 +- Version: v1.1.1 +- Date: May 23 2019 - [Release notes](https://github.com/pointybeard/helpers-functions-cli/blob/master/CHANGELOG.md) - [GitHub repository](https://github.com/pointybeard/helpers-functions-cli) @@ -32,6 +32,7 @@ The following functions are provided: - `is_su() : bool` - `usage(string $name, 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: @@ -50,6 +51,12 @@ var_dump(Cli\can_invoke_bash()); var_dump(Cli\is_su()); // bool(false) +var_dump(Cli\get_window_size()); +// array(2) { +// 'cols' => string(3) "103" +// 'lines' => string(2) "68" +// } + echo Cli\manpage( 'test', '1.0.0', diff --git a/composer.json b/composer.json index 3923132..427c8bb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "pointybeard/helpers-functions-cli", - "version": "1.1.0", + "version": "1.1.1", "description": "A collection of functions relating to the command-line", "homepage": "https://github.com/pointybeard/helpers-functions-cli", "license": "MIT",