|
36 | 36 | '--token', |
37 | 37 | '-t', |
38 | 38 | help='your api token', |
39 | | - envvar='SQUARECLOUD-TOKEN', |
| 39 | + envvar='SQUARECLOUD_KEY', |
40 | 40 | required=True, |
41 | 41 | type=click.STRING, |
42 | 42 | prompt='API KEY', |
@@ -105,7 +105,7 @@ async def get_app_status(ctx: Context): |
105 | 105 | '--token', |
106 | 106 | '-t', |
107 | 107 | help='your api token', |
108 | | - envvar='SQUARECLOUD-TOKEN', |
| 108 | + envvar='SQUARECLOUD_KEY', |
109 | 109 | required=True, |
110 | 110 | type=click.STRING, |
111 | 111 | prompt='API KEY', |
@@ -134,7 +134,6 @@ async def app_list(ctx: Context, token: str): |
134 | 134 | table.add_column('Language', justify='center') |
135 | 135 | table.add_column('Description', justify='center') |
136 | 136 | table.add_column('Is Website', justify='center') |
137 | | - table.add_column('Avatar', justify='center') |
138 | 137 | table.add_column('Cluster', justify='center') |
139 | 138 | for app in apps: |
140 | 139 | table.add_row( |
@@ -292,7 +291,7 @@ async def delete_app(ctx: Context): |
292 | 291 | '--token', |
293 | 292 | '-t', |
294 | 293 | help='your api token', |
295 | | - envvar='SQUARECLOUD-TOKEN', |
| 294 | + envvar='SQUARECLOUD_KEY', |
296 | 295 | required=True, |
297 | 296 | type=click.STRING, |
298 | 297 | prompt='API KEY', |
@@ -373,7 +372,16 @@ async def last_deploys(ctx: Context): |
373 | 372 | name='github-integration', |
374 | 373 | help='Get a webhook url to integrate your application with github', |
375 | 374 | ) |
376 | | -@click.argument('access_token', type=click.STRING) |
| 375 | +@click.option( |
| 376 | + '--access-token', |
| 377 | + '-t', |
| 378 | + help='your github access token', |
| 379 | + envvar='GITHUB_ACCESS_TOKEN', |
| 380 | + required=True, |
| 381 | + type=click.STRING, |
| 382 | + prompt='GITHUB ACCESS TOKEN', |
| 383 | + hide_input=True, |
| 384 | +) |
377 | 385 | @click.pass_context |
378 | 386 | @run_async |
379 | 387 | async def github_integration(ctx: Context, access_token: str): |
|
0 commit comments