Perinci-CmdLine-Classic
view release on metacpan or search on metacpan
[INTERNAL]
- Refactoring: split some functionality to Perinci::CmdLine::Base (in
separate dist) for creating Perinci::CmdLine::Lite, a lightweight
alternative that doesn't use Moo, Perinci::Access, nor
Perinci::Result::Format. There are now Perinci-CmdLine and
Perinci-CmdLine-Lite distributions.
- Refactoring: run() and run_*() now returns enveloped response instead
of int. All output is now returned as string by run_*() instead of
printed directly (except for streaming output).
- Refactoring: No long uses internal attributes like
$self->{_subcommand}. Instead, now a per-request (per-run())
stash/hash $r is passed around. This is not unlike the technique used
in Apache handlers and Data::Sah. It's cleaner because the
per-request state is isolated from the object itself.
- Refactoring: help-generating methods now separated into a separate
role (Perinci::CmdLine::Role::Help), just to be more organized.
0.72 2013-04-14 Released-By: SHARYANTO
[INCOMPATIBLE CHANGES]
- format_and_display_result() is split to format_result() and
display_result() (should not be a problem because it's not yet
documented).
[ENHANCEMENTS]
- Support streaming output (function needs to set result metadata
is_stream => 1 and result needs to be glob/IO::Handle/array/tied
array, format needs to be text).
- Observe 'x.perinci.cmdline.default_format' metadata attribute.
0.71 2013-04-05 Released-By: SHARYANTO
- No functional changes. Workaround problem which causes non-pretty
text tables to be displayed by default.
( run in 0.267 second using v1.01-cache-2.11-cpan-4d50c553e7e )