Skip to content

Commit 4eb1fee

Browse files
committed
Fix up typo and test
1 parent 7bc6d54 commit 4eb1fee

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ __pycache__/
22
.venv/
33
.mypy_cache/
44
/.envrc
5+
/dist/

script.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
from edge_addons_api.client import Options, Client
22

33
import os
4+
import sys
5+
6+
7+
if len(sys.argv) < 3:
8+
print("You must provide file_path and notes")
9+
sys.exit(1)
10+
11+
file_path = sys.argv[1]
12+
notes = sys.argv[2]
413

514
options = Options(
615
product_id=os.environ["EDGE_PRODUCT_ID"],
716
client_id=os.environ["EDGE_CLIENT_ID"],
817
client_secret=os.environ["EDGE_CLIENT_SECRET"],
9-
access_token_url=os.environ["EDGE_ACCES_TOKEN_URL"]
18+
access_token_url=os.environ["EDGE_ACCESS_TOKEN_URL"]
1019
)
1120

1221
client = Client(options)
1322

1423
client.submit(
15-
file_path="/path/to/extension.zip",
16-
notes="Your upload notes"
24+
file_path=file_path,
25+
notes=notes
1726
)

0 commit comments

Comments
 (0)