fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] couldn't fab<enter> summon a default task?


From: Jeff Forcier
Subject: Re: [Fab-user] couldn't fab<enter> summon a default task?
Date: Thu, 21 Jan 2010 13:57:14 -0500

Hi Phlip,

Put succinctly, the main reason we don't follow the "make" convention
of having a default task is that we prefer to follow the wider Unix
convention of "program run with no args == print help output".

This behavior was originally put in just due to that convention being
the perceived default (i.e. it's "how things are done") but the
opposing make-like viewpoint has been raised once recently in a side
discussion on this ticket's comments:

    http://code.fabfile.org/issues/show/76

If you still feel strongly about it, we could at least make a distinct
ticket for the issue and move/copy discussion into there -- even if I
don't change my mind, it'd be nice to have the pluses/minuses laid out
in their own space for future referral.

In addition, the more people that ask for features, the more it moves
up on my list of "stuff to reconsider or compromise on." and you're
now the 2nd or 3rd person to bring this up, so...:)

Hope that helps,
Jeff

On Thu, Jan 21, 2010 at 1:45 PM, Phlip <address@hidden> wrote:
> Fabbers:
>
> I came to Django from Rails (which explains my kvetching on the Django
> mailing list!).
>
> I have found Fabric to match Rakefile in each power I need from it,
> and I'm amazed it blows Capistrano away in only 10 source files.
>
> However, I can't find a simple convenience that would make my suite of
> project-specific commands (pull, test, int, etc.) complete.
>
> I liked Rails when rake<enter> called rake default, which in turn
> called rake test. This made testing absurdly convenient - even as our
> feeb editors and user-hostile Mac computers made it ridiculously hard!
>
> So I'd like to write a fabfile.py with this in it...
>
>    def default():
>        test()
>
> Then I'd like to call the default when I hit fab<enter>. Instead, I
> now get the help message.
>
> While I monkey-patch this into place, may I ask if anyone else would
> like to "second" this feature request?
>
> Put another way, doesn't everyone have some fab command that they run
> as often as possible?
>
> --
>  Phlip
>  http://c2.com/cgi/wiki?ZeekLand
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]