Skip to content

Instantly share code, notes, and snippets.

@tabletcorry
Created July 15, 2011 23:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Fabric namespace recursion
from fabric.api import *
@task
def bar_noop():
return
from fabric.api import *
import foo
import bar
from fabric.api import *
import bar
@task
def foo_noop():
return
$ fab --list
Available commands:
foo.foo_noop
foo.bar.bar_noop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment