Skip to content

Commit

Permalink
Adding test cases for a-deck cli
Browse files Browse the repository at this point in the history
  • Loading branch information
zcobell committed Oct 18, 2024
1 parent 366f244 commit 912134e
Show file tree
Hide file tree
Showing 3 changed files with 19,562 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/metget/metget_adeck.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def metget_adeck(args: argparse.Namespace) -> None:
track_data = response_data["body"]

if args.format == "json":
print(json.dumps(track_data))
if storm == "all" or model.lower() == "all":
print(json.dumps(track_data["storm_tracks"]))
else:
print(json.dumps(track_data["storm_track"]))
elif args.format == "pretty":
if storm == "all":
table = print_table_all_storms(track_data)
Expand Down
Loading

0 comments on commit 912134e

Please sign in to comment.