PsySH v0.10.3 Release Notes

Release Date: 2020-04-07 // over 4 years ago
  • ๐Ÿš€ This one's almost too big for a point release!

    ๐Ÿ†• New:

    • ๐Ÿ†• New command line options:
      • --interactive and --no-interactive, to explicitly enable or disable interactive mode.
      • --verbose, --quiet and -v/-vv/-vvv for output verbosity. This one kind of worked before, but only sometimes, and only kind of :)
      • ... and a bunch of aliases, for those familiar with Symfony, Composer and other tools.
    • ๐Ÿ†• New and improved command line option handling, making it easier for libraries that wrap PsySH to support the same options as psysh does!
    • ๐Ÿ†• New configuration options:
      • verbosity, equivalent to the -v, -vv, -vvv and --silent command line options.
      • interactiveMode, equivalent to --interactive and --no-interactive command line options.
      • formatterStyles, for overriding command line colors.
    • 0๏ธโƒฃ Default to non-interactive mode when input is coming from a pipe.
    • Cleaner output when using --raw-output, or STDOUT is redirected.
    • Exceptions and errors are now written to STDERR not STDOUT, which makes it easier to split them off from desired output.
    • ๐Ÿ’… Brand new shiny code formatter. It's more consistent between different commands, the colors match class and method signatures in ls and elsewhere, the line numbers are the same style and colors as in history, etc.
    • Tab completion for interfaces, as well as classes (Thanks @GrahamCampbell!)
    • The ls command can now list namespaces! This means, for example, that ls --classes Psy will return all known classes inside the Psy namespace. This works for constants, functions, interfaces and traits as well.
    • The show command now shows files! Try show __DIR__. '/vendor/autoload.php'. This is super handy when combined with the $__file magic variable set by ls and doc :)

    ๐Ÿ‘Œ Improved:

    • ๐Ÿ‘Œ Support redisplay in HOA/Console readline (Thanks @zonuexe!)
    • The show command now includes doc comments for classes, interfaces, traits, functions and methods.
    • The whereami command now has a --file option for showing the entire file.
    • Set the PsySH process title without the proctitle extension.
    • ๐Ÿ›  Fix an issue with pre-packaged phar releases which added a couple of unnecessary functions to the global namespace.
    • ๐Ÿ›  Fix a bug parsing single-line docblocks for the doc command.
    • ๐Ÿ›  Fix a small bug parsing code in sudo, parse and throwup commands.
    • A bunch of housekeepking and general cleanup (Thanks @GrahamCampbell!)
    • Modernize some code.