I want to extend Fabric with some functionality and would like to invoke Fabric programmatically.
What I understood is to call the main() method in https://github.com/fabric/fabric/blob/master/fabric/main.py , but I cannot pass any parameters directly to because it reads its parameters inside the function.
Any idea to set command line options programmatically and calling main() ?
source share