Passing parameters in Fabric Tasks
Fabric is a nice project that allows you full automation process and deployment tasks.
If you have a task in fabric that needs parameters this is the way you should pass it on shell.
let's imagine you have the following task:
@task
def task(parameter):
print(parameter)
now, you can do as follow:
~# fab task:parameter **
or
**~# fab task:'parameter'
And that's it!
Written by Ellison Leão
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#