Skip to content

Commit 30f3eee

Browse files
♻️ refactor(cli): changed env var from "SQUARECLOUD-TOKEN" to "SQUARECLOUD_KEY"
1 parent dd4b4c3 commit 30f3eee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

squarecloud/cli/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818

1919
load_dotenv()
2020

21+
2122
@cli.command(
22-
name='statistics',
23-
help='Get statistics information about the host',
23+
name='statistics', help='Get statistics information about the host'
2424
)
2525
@click.option(
2626
'--token',
2727
'-t',
2828
help='your api token',
29-
envvar='SQUARECLOUD-TOKEN',
29+
envvar='SQUARECLOUD_KEY',
3030
required=True,
3131
type=click.STRING,
3232
prompt='API KEY',
@@ -36,7 +36,7 @@
3636
async def get_squarecloud_statistics(token: str):
3737
client = Client(api_key=token, debug=False)
3838

39-
with Console().status('loading') as status:
39+
with Console().status('loading'):
4040
statistics_data: StatisticsData = await client.statistics()
4141
table = Table(title='Statistics', header_style='purple')
4242

0 commit comments

Comments
 (0)