[Nitro] opinion on console command facet

TRANS transfire at gmail.com
Mon Jun 19 05:01:52 EDT 2006


On 6/19/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote:
> On 19/06/06, TRANS <transfire at gmail.com> wrote:
> > another one of my opinion queries....
>
> Console::Controller ? Console::Command doesn't fit quite since it can
> be multiple commands.

ooeee... you're in too deep with the MVC ;-)

It's a "command", man, as in "shell command" and "command line interface".

> >   # bin/example
> >
> >   class MyCmd < Console::Command
> >
> >     help "This does something"
> >
> >     def something
> >       puts "Something!"
> >     end
> >  end
>
> Is it the same as :
>
> class MyCmd < Console::Command
>   def something
>     puts "Something!"
>   end
>   ann :something, :doc => "This does something"
> end

Hmm... that's a interesting though. I didn't do it that way. The
implementation is rather simple by comparision. Is there's an
advantage to using annotations here?

T.



More information about the Nitro-general mailing list