Skip to content

Instantly share code, notes, and snippets.

@tabletcorry
Created July 15, 2011 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabletcorry/1085763 to your computer and use it in GitHub Desktop.
Save tabletcorry/1085763 to your computer and use it in GitHub Desktop.
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