diff env/lib/python3.9/site-packages/planemo/commands/cmd_training_generate_from_wf.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/env/lib/python3.9/site-packages/planemo/commands/cmd_training_generate_from_wf.py	Mon Mar 22 18:12:50 2021 +0000
@@ -0,0 +1,22 @@
+"""Module describing the planemo ``training_generate_from_wf`` command."""
+
+import click
+
+from planemo import options
+from planemo.cli import command_function
+from planemo.training import Training
+
+
+@click.command('training_generate_from_wf')
+@options.optional_tools_arg(multiple=True, allow_uris=True)
+@options.training_generate_tuto_from_wf_options()
+@options.galaxy_serve_options()
+@command_function
+def cli(ctx, uris, **kwds):
+    """Create tutorial skeleton from workflow."""
+    kwds["no_dependency_resolution"] = True
+    # Ugh rather than override this - it just needs to not be in the serve options
+    # for this command.
+    kwds["skip_client_build"] = True
+    training = Training(kwds)
+    training.generate_tuto_from_wf(ctx)