Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: jboursier <jboursier@malwarebytes.com>
  • Loading branch information
jboursier-mwb committed Oct 22, 2022
1 parent 09d56b8 commit ab40ce8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

try:
import click
import json
from typing import Dict, Any
from datetime import datetime
except ImportError:
Expand Down Expand Up @@ -206,13 +207,13 @@ def repositories_list(
repos = []
for r in res:
repos.append(r.to_ghas())
output.write(str([{"login": organization, "repos": repos}]) + "\n")
output.write(json.dumps([{"login": organization, "repos": repos}]) + "\n")
click.echo([{"login": organization, "repos": repos}])
elif "json" == format:
repos = []
for r in res:
repos.append(r.to_json())
output.write(str(repos) + "\n")
output.write(json.dumps(repos) + "\n")
click.echo(repos)
elif "list" == format:
for r in res:
Expand Down
1 change: 1 addition & 0 deletions src/ghas_cli/utils/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#!/usr/bin/env python3

from typing import Any, Dict
from datetime import datetime
import time


Expand Down

0 comments on commit ab40ce8

Please sign in to comment.