File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ __pycache__/
22.venv /
33.mypy_cache /
44/.envrc
5+ /dist /
Original file line number Diff line number Diff line change 11from edge_addons_api .client import Options , Client
22
33import 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
514options = 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
1221client = Client (options )
1322
1423client .submit (
15- file_path = "/path/to/extension.zip" ,
16- notes = "Your upload notes"
24+ file_path = file_path ,
25+ notes = notes
1726)
You can’t perform that action at this time.
0 commit comments