Skip Menu |

This queue is for tickets about the CLI-Dispatch CPAN distribution.

Report information
The Basics
Id: 115600
Status: resolved
Priority: 0/
Queue: CLI-Dispatch

People
Owner: ishigaki [...] cpan.org
Requestors: YOHEIMUTA [...] cpan.org
Cc: yoheimuta [...] gmail.com
AdminCc:

Bug Information
Severity: Important
Broken in: 0.20
Fixed in: (no value)



CC: yoheimuta [...] gmail.com
Subject: [Proposal] Avoid to destroy some data of a CLI::Dispatch::Command's child class
We created a child class based CLI::Dispatch::Command according to README instructions. And this child class implemented a new subroutine and set instance variables in it. But the variables are invalid in run method because CLI::Dispatch::Command's set_options method runs `%{ $self } = @_;`. We want to keep the child instance variables. I write a proposal commit. See https://github.com/yoheimuta/CLI-Dispatch-tmp/commit/c0117d203e0e1b58722a620ce2138568485be436, sorry for uploading to github without your permission... We appreciate this useful module. Thanks.
Your patch seems reasonable. Could you re-send me the patch as a pull request to https://github.com/charsbar/cli-dispatch, please? Thank you for the report. On Sat Jun 25 22:31:59 2016, YOHEIMUTA wrote: Show quoted text
> We created a child class based CLI::Dispatch::Command according to > README instructions. And this child class implemented a new subroutine > and set instance variables in it. But the variables are invalid in run > method because CLI::Dispatch::Command's set_options method runs `%{ > $self } = @_;`. > > We want to keep the child instance variables. > > I write a proposal commit. > See https://github.com/yoheimuta/CLI-Dispatch- > tmp/commit/c0117d203e0e1b58722a620ce2138568485be436, sorry for > uploading to github without your permission... > > We appreciate this useful module. > Thanks.
On 2016-6月-25 土 09:40:40, ISHIGAKI wrote: Show quoted text
> Your patch seems reasonable. Could you re-send me the patch as a pull > request to https://github.com/charsbar/cli-dispatch, please? Thank you > for the report. > > On Sat Jun 25 22:31:59 2016, YOHEIMUTA wrote:
> > We created a child class based CLI::Dispatch::Command according to > > README instructions. And this child class implemented a new > > subroutine > > and set instance variables in it. But the variables are invalid in > > run > > method because CLI::Dispatch::Command's set_options method runs `%{ > > $self } = @_;`. > > > > We want to keep the child instance variables. > > > > I write a proposal commit. > > See https://github.com/yoheimuta/CLI-Dispatch- > > tmp/commit/c0117d203e0e1b58722a620ce2138568485be436, sorry for > > uploading to github without your permission... > > > > We appreciate this useful module. > > Thanks.
I sent a pr. https://github.com/charsbar/cli-dispatch/pull/1 Thank you for a quick reply.
On Sat Jun 25 22:50:05 2016, YOHEIMUTA wrote: Show quoted text
> On 2016-6月-25 土 09:40:40, ISHIGAKI wrote:
> > Your patch seems reasonable. Could you re-send me the patch as a pull > > request to https://github.com/charsbar/cli-dispatch, please? Thank you > > for the report. > > > > On Sat Jun 25 22:31:59 2016, YOHEIMUTA wrote:
> > > We created a child class based CLI::Dispatch::Command according to > > > README instructions. And this child class implemented a new > > > subroutine > > > and set instance variables in it. But the variables are invalid in > > > run > > > method because CLI::Dispatch::Command's set_options method runs `%{ > > > $self } = @_;`. > > > > > > We want to keep the child instance variables. > > > > > > I write a proposal commit. > > > See https://github.com/yoheimuta/CLI-Dispatch- > > > tmp/commit/c0117d203e0e1b58722a620ce2138568485be436, sorry for > > > uploading to github without your permission... > > > > > > We appreciate this useful module. > > > Thanks.
> > > I sent a pr. https://github.com/charsbar/cli-dispatch/pull/1 > Thank you for a quick reply.
Shipped 0.21. Thank you.
On 2016-6月-25 土 10:28:08, ISHIGAKI wrote: Show quoted text
> On Sat Jun 25 22:50:05 2016, YOHEIMUTA wrote:
> > On 2016-6月-25 土 09:40:40, ISHIGAKI wrote:
> > > Your patch seems reasonable. Could you re-send me the patch as a pull > > > request to https://github.com/charsbar/cli-dispatch, please? Thank you > > > for the report. > > > > > > On Sat Jun 25 22:31:59 2016, YOHEIMUTA wrote:
> > > > We created a child class based CLI::Dispatch::Command according to > > > > README instructions. And this child class implemented a new > > > > subroutine > > > > and set instance variables in it. But the variables are invalid in > > > > run > > > > method because CLI::Dispatch::Command's set_options method runs `%{ > > > > $self } = @_;`. > > > > > > > > We want to keep the child instance variables. > > > > > > > > I write a proposal commit. > > > > See https://github.com/yoheimuta/CLI-Dispatch- > > > > tmp/commit/c0117d203e0e1b58722a620ce2138568485be436, sorry for > > > > uploading to github without your permission... > > > > > > > > We appreciate this useful module. > > > > Thanks.
> > > > > > I sent a pr. https://github.com/charsbar/cli-dispatch/pull/1 > > Thank you for a quick reply.
> > Shipped 0.21. Thank you.
Thanks !