diff env/lib/python3.9/site-packages/planemo/commands/cmd_profile_create.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_profile_create.py	Mon Mar 22 18:12:50 2021 +0000
@@ -0,0 +1,23 @@
+"""Module describing the planemo ``profile_create`` command."""
+from __future__ import print_function
+
+import click
+
+from planemo import options
+from planemo.cli import command_function
+from planemo.galaxy import profiles
+
+
+@click.command('profile_create')
+@options.profile_name_argument()
+@options.profile_database_options()
+@options.serve_engine_option()
+@options.docker_config_options()
+@options.galaxy_url_option()
+@options.galaxy_user_key_option()
+@options.galaxy_admin_key_option()
+@command_function
+def cli(ctx, profile_name, **kwds):
+    """Create a profile."""
+    profiles.create_profile(ctx, profile_name, **kwds)
+    print("Profile [%s] created." % profile_name)