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

Fix workflow_edit #1427

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion planemo/commands/cmd_workflow_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def cli(ctx, workflow_identifier, output=None, force=False, **kwds):
"""Open a synchronized Galaxy workflow editor."""
assert is_galaxy_engine(**kwds)
runnable = for_runnable_identifier(ctx, workflow_identifier, kwds.get("profile"))
runnable = for_runnable_identifier(ctx, workflow_identifier, kwds)

kwds["workflows_from_path"] = True

Expand Down
8 changes: 6 additions & 2 deletions planemo/runnable_resolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import os
from typing import (
Any,
Dict,
)

import requests

Expand All @@ -15,7 +19,7 @@
)


def for_runnable_identifier(ctx, runnable_identifier, kwds):
def for_runnable_identifier(ctx, runnable_identifier, kwds: Dict[str, Any]):
"""Convert URI, path, or alias into Runnable."""
# could be a URI, path, or alias
current_profile = kwds.get("profile")
Expand All @@ -33,7 +37,7 @@ def for_runnable_identifier(ctx, runnable_identifier, kwds):
return runnable


def for_runnable_identifiers(ctx, runnable_identifiers, kwds):
def for_runnable_identifiers(ctx, runnable_identifiers, kwds: Dict[str, Any]):
"""Convert lists of URIs, paths, and/or aliases into Runnables."""
runnables = []
for r in runnable_identifiers:
Expand Down
Loading