Skip to content

Latest commit

 

History

History
130 lines (105 loc) · 3.75 KB

File metadata and controls

130 lines (105 loc) · 3.75 KB

Changelog: inanepain/cli

History

Version: $Id$ ($Date$)

0.18.0-dev (2026 Xxx xx)

  • new: Console Three classes that handle a directory of cli script files. Running them as templates an making range of methods available to them.

  • new: ConsoleScriptManager got two events you can add a callable to:

    • if no script is triggered, a custom method can be triggered

    • after every script has run, on exit triggers

  • new: CliScript can have their own custom config.

  • new: Pencil::divider creates a line across the screen.

  • new: Pencil::confirm see Cli::confirm.

  • update: TextTable no longer assumes a header only adding one on addHeader.

  • update: TextTable example updated.

  • update: Pencil::error outputs to STDERR.

  • update: Arguments options now also support stacking.

  • update: type setting more methods.

  • update: update CliScript header.

  • update: Pencil line & out use empty string as default.

  • update: Stdlib minimum required version 0.9.0.

    • new: Arguments::jsonSerialize used by json_encode.

0.12.1 (2022 Aug 11)

  • fix: TextTable divider ⇒ uses full column width

  • fix: TextTable coloured string cell width

  • fix: Colors::length error

0.13.0 (2022 Oct 10)

  • fix: STD(OUT/IN/ERR) undefined

  • new: Cli::isCliServer Is PHP built-in server

  • new: Pencil stationary tools

  • upd: Cli::input new optional arg $default returned if non-interactive shell

  • many minor tweaks, updates and fixes

0.14.0 (2022 Dec 21)

  • new: Pencil::format returns colour string without outputting it

  • new: Pencil::input reads terminal input

  • new: Pencil cache original text for reversing it in certain situations

  • new: Colour::Default system colour

  • fix: Arguments::getOption return type

  • fix: various little updates and fixes

  • update: Arguments implements \Inane\Stdlib\Converters\JSONable

  • update: Arguments::toJSON added $pretty option to format json

  • update: HelpScreen fixes for php 8.1

  • update: \Inane\Stdlib\Json start to replace json_*

  • update: inanepain/stdlib requirement bumped to 0.4.0

0.14.1 (2023 May 03)

  • new: Cli::shellEnv return enum Environment type: none, interactive, non-interactive

  • update: minor tweaks, improvements and updates

0.15.0 (2025 Mar 14)

  • fix: Lexer::unshift return type

  • fix: Arguments::parseFlag not incrementing stackable flags

  • other minor updates and fixes (mainly to code comments & variable typing)

  • switch from posix_isatty to stream_isatty for better compatibility

  • windows compatibility improvements

  • update return & param types

  • update code docs

  • simplify inter-class function calls

  • improved File writing

0.16.0 (2025 Apr 25)

  • menu : now takes int and string values for menu index

  • update: Pencil::pad now has a padString argument

  • update: Notify improved parametar types