mirror of
https://github.com/n3w/helpers-functions-cli.git
synced 2025-12-19 12:43:22 +00:00
Updated README and CHANGELOG for 1.1.1
This commit is contained in:
parent
4985979992
commit
f520bc4323
3 changed files with 16 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
11
README.md
11
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',
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue