Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruffus cmdline and OO syntax #73

Open
mbiokyle29 opened this issue Jul 1, 2016 · 1 comment
Open

ruffus cmdline and OO syntax #73

mbiokyle29 opened this issue Jul 1, 2016 · 1 comment

Comments

@mbiokyle29
Copy link

Hello!

New object oriented syntax is awesome. I was wondering if we could get updates to the docs for working with the new pipeline syntax and the ruffus cmdline approach.

What I mean:

# new syntax
pipeline = Pipeline()

# build pipeline

pipeline.run()

With cmdline

import ruffus.cmdline as cmdline
parser = cmdline.get_argparse(description='WHAT DOES THIS PIPELINE DO?')
#  cmd ops
options = parser.parse_args()

#  pipelined functions go here
cmdline.run (options)

How should we make cmdline and the pipeline object work together? I tried a few different ways (running one or the other, passing pipeline to cmd, etc) but nothing seemed to work correctly.

@Jerry-Ma
Copy link

Jerry-Ma commented Aug 4, 2016

If you only have one Pipeline object, then cmdline.run(options) will run that pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants