File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ __pycache__/
2
2
.venv /
3
3
.mypy_cache /
4
4
/.envrc
5
+ /dist /
Original file line number Diff line number Diff line change 1
1
from edge_addons_api .client import Options , Client
2
2
3
3
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 ]
4
13
5
14
options = Options (
6
15
product_id = os .environ ["EDGE_PRODUCT_ID" ],
7
16
client_id = os .environ ["EDGE_CLIENT_ID" ],
8
17
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 " ]
10
19
)
11
20
12
21
client = Client (options )
13
22
14
23
client .submit (
15
- file_path = "/path/to/extension.zip" ,
16
- notes = "Your upload notes"
24
+ file_path = file_path ,
25
+ notes = notes
17
26
)
You can’t perform that action at this time.
0 commit comments