Hi, As Jens pointed out, this is a known problem; the namespace feature overall is relatively immature and is clunky in nontrivial use cases. This sort of issue has been on my mind a lot when I've been thinking about the next version and I expect that API to be more usable & explicit.
Most workarounds for now involve making sure the module (or functions in it) showing up 2x, are only visible at module-level in one place (Fab builds the namespace by crawling your top-level imports, then those files' top-level imports, etc). Typically this means importing things inside the functions that use them, which is somewhat ugly and non-idiomatic, but does work to "hide" the doubles. Best (& apologies :)), Jeff On Fri, Feb 1, 2013 at 1:28 AM, Jens Rantil <[email protected]> wrote: > Hi James, > > I don't think there is right now. However, I created an issue on Github a > while ago for this: https://github.com/fabric/fabric/issues/678. Another > issue that could solve your problem is > https://github.com/fabric/fabric/issues/134. > > Sadly none of the tickets above have been fixed. > > Jens > > > On Thu, Jan 31, 2013 at 2:49 PM, Stroehmann, James > <[email protected]> wrote: >> >> Is there any way to suppress the redundant imported tasks I get when >> running fab –l? >> >> >> >> OOpsRestart is not imported, OOpsStart and OOpsStop are imported and >> redundant: >> >> >> >> jaymz@casta:~/fabfile$ fab -l >> >> Available commands: >> >> >> >> OOpsRestart >> >> OOpsStart >> >> OOpsStop >> >> oopsstart.OOpsStart >> >> oopsstop.OOpsStop >> >> >> >> I would prefer the not to have the long listing ‘oopsstart.OOpsStart’. >> >> >> >> >> _______________________________________________ >> Fab-user mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/fab-user >> > > > > -- > Want to know how full my inbox is? Or how to get in touch with me faster? Or > tell me your e-mail is not that important? Then check this out: > http://courteous.ly/4WtfZY > > _______________________________________________ > Fab-user mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user > -- Jeff Forcier Unix sysadmin; Python/Ruby engineer http://bitprophet.org _______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
