{"action":"created","issue":{"url":"https://api.github.com/repos/nipy/nipype/issues/1251","labels_url":"https://api.github.com/repos/nipy/nipype/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/nipy/nipype/issues/1251/comments","events_url":"https://api.github.com/repos/nipy/nipype/issues/1251/events","html_url":"https://github.com/nipy/nipype/issues/1251","id":111619248,"number":1251,"title":"Workflow CLI Template?","user":{"login":"blakedewey","id":4713571,"avatar_url":"https://avatars.githubusercontent.com/u/4713571?v=3","gravatar_id":"","url":"https://api.github.com/users/blakedewey","html_url":"https://github.com/blakedewey","followers_url":"https://api.github.com/users/blakedewey/followers","following_url":"https://api.github.com/users/blakedewey/following{/other_user}","gists_url":"https://api.github.com/users/blakedewey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakedewey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakedewey/subscriptions","organizations_url":"https://api.github.com/users/blakedewey/orgs","repos_url":"https://api.github.com/users/blakedewey/repos","events_url":"https://api.github.com/users/blakedewey/events{/privacy}","received_events_url":"https://api.github.com/users/blakedewey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nipy/nipype/labels/to%20consider","name":"to consider","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T13:40:39Z","updated_at":"2015-10-15T16:04:50Z","closed_at":null,"body":"I have been thinking for a while that we don't have a clear template that allows people to leverage their workflows from the CLI. I normally have a script that:\r\n1. Has a `__name__==\"__main__\"` block that contains an argument parser from `argparse`\r\n2. Passes input arguments to a function that creates my workflow based on those inputs\r\n3. Runs the workflow with the specified parallel plugin\r\n\r\nIs this how everyone does it? Or is do you always run from an interactive window? I have built up some boilerplate for parsing in parallel plugins/args in particular and I am wondering how best to share them."},"comment":{"url":"https://api.github.com/repos/nipy/nipype/issues/comments/148436757","html_url":"https://github.com/nipy/nipype/issues/1251#issuecomment-148436757","issue_url":"https://api.github.com/repos/nipy/nipype/issues/1251","id":148436757,"user":{"login":"chrisfilo","id":238759,"avatar_url":"https://avatars.githubusercontent.com/u/238759?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfilo","html_url":"https://github.com/chrisfilo","followers_url":"https://api.github.com/users/chrisfilo/followers","following_url":"https://api.github.com/users/chrisfilo/following{/other_user}","gists_url":"https://api.github.com/users/chrisfilo/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfilo/subscriptions","organizations_url":"https://api.github.com/users/chrisfilo/orgs","repos_url":"https://api.github.com/users/chrisfilo/repos","events_url":"https://api.github.com/users/chrisfilo/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfilo/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T16:04:50Z","updated_at":"2015-10-15T16:04:50Z","body":"We should think how we can integrate this with nipype_cmd\n\nOn Thu, Oct 15, 2015 at 8:59 AM, Oscar Esteban <notifications@github.com>\nwrote:\n\n> I usually do this as well.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/nipy/nipype/issues/1251#issuecomment-148433468>.\n>\n"}}