Skip to content

Commit

Permalink
Merge pull request #262 from galaxyproject/259-invocation-show
Browse files Browse the repository at this point in the history
Invocation Show
  • Loading branch information
ksuderman authored Dec 15, 2023
2 parents 1a686b4 + 3d627d7 commit 0dfb4c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion abm/lib/invocation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse
from common import Context, connect, print_json, summarize_metrics, print_markdown_table, get_float_key, get_str_key, \
print_table_header
print_table_header, print_yaml


def doList(context: Context, args: list):
Expand All @@ -26,6 +26,15 @@ def doList(context: Context, args: list):
print(f'{id}\t{state}\t{workflow}\t{history}')


def show(context: Context, args: list):
if len(args) == 0:
print("ERROR: no invocation ID was provided")
return
gi = connect(context)
invocation = gi.invocations.show_invocation(args[0])
print_yaml(invocation)


def summarize(context: Context, args: list):
parser = argparse.ArgumentParser()
parser.add_argument('id', nargs=1)
Expand Down
4 changes: 4 additions & 0 deletions abm/lib/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@
help: list all invocations.
handler: invocation.doList
params: "[-w|--workflow ID] [-h|--history ID]"
- name: [show]
help: display information about the workflow invocation
params: ID
handler: invocation.show
- name: [summarize]
help: generate a CSV or markdown table of job metrics for an invocation
params: "ID [--markdown]"
Expand Down

0 comments on commit 0dfb4c1

Please sign in to comment.