Skip to content

Commit

Permalink
Merge pull request #152 from galaxyproject/151-dataset-show
Browse files Browse the repository at this point in the history
JSON Output
  • Loading branch information
ksuderman authored Oct 17, 2022
2 parents 5b1d030 + b7587fb commit fbd28b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion abm/lib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def show(context: Context, args: list):
print("ERROR: no dataset ID provided")
return
gi = connect(context)
pprint(gi.datasets.show_dataset(args[0]))
result = gi.datasets.show_dataset(args[0])
print(json.dumps(result, indent=4))


def delete(context: Context, args: list):
Expand Down
3 changes: 2 additions & 1 deletion abm/lib/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def show(context: Context, args: list):
print('ERROR: no workflow ID given')
return
gi = connect(context)
pprint(gi.workflows.show_workflow(args[0]))
result = gi.workflows.show_workflow(args[0])
print(json.dumps(result, indent=4))


def find(context: Context, args: list):
Expand Down

0 comments on commit fbd28b7

Please sign in to comment.