[MTOS-dev] MT::Tool
Dan Sanderson
contact at dansanderson.com
Tue May 6 16:23:15 PDT 2008
Hi Mark -
I'd like the ability to run a command-line tool with a current working
directory or tool location possibly outside of the MT install dir. This
would require the ability to pass the Config or Directory options through
set_up_app() to MT->new(), possibly as a standard command line option
present in main(). A fallback to an environment variable (MT_DIR) might
also be nice.
Let me know if I'm misreading the code and these features already exist. :)
(P.S. I'm about to start a separate thread asking for help getting a simple
MT 4.1 rebuild tool going, which might relate directly to MT::Tool feature
requests.)
Thanks!
-- Dan
On Thu, Apr 24, 2008 at 9:42 AM, Mark Paschal <mark at sixapart.com> wrote:
> Hi, folks,
>
> As part of Cal, I added an MT::Tool superclass to make it easy to
> build command line tools with standard help options and bootstrapping.
> Check out its perldoc. It's derived mostly from chapter 14 of Perl
> Best Practices, Command-Line Processing.
>
> Is this going to break anything for you? I know Tim Appnel and Jay
> Allen each have their own classes called "MT::Tool" this will affect,
> but I don't know a better name (apparently they didn't either!). If
> this will break widely deployed software, we can work out a new name.
>
> Less pressingly (we probably can't add any features for Cal as we're
> so late in that process), what other functionality would you like to
> see in MT::Tool?
>
>
> Mark Paschal
> Software developer, Movable Type
> mark at sixapart.com
> _______________________________________________
> MTOS-dev mailing list
> MTOS-dev at sixapart.com
> http://www.sixapart.com/mailman/listinfo/mtos-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.sixapart.com/pipermail/mtos-dev/attachments/20080506/bec1729c/attachment.html
More information about the MTOS-dev
mailing list