We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4b4c3 commit 30f3eeeCopy full SHA for 30f3eee
squarecloud/cli/main.py
@@ -18,15 +18,15 @@
18
19
load_dotenv()
20
21
+
22
@cli.command(
- name='statistics',
23
- help='Get statistics information about the host',
+ name='statistics', help='Get statistics information about the host'
24
)
25
@click.option(
26
'--token',
27
'-t',
28
help='your api token',
29
- envvar='SQUARECLOUD-TOKEN',
+ envvar='SQUARECLOUD_KEY',
30
required=True,
31
type=click.STRING,
32
prompt='API KEY',
@@ -36,7 +36,7 @@
36
async def get_squarecloud_statistics(token: str):
37
client = Client(api_key=token, debug=False)
38
39
- with Console().status('loading') as status:
+ with Console().status('loading'):
40
statistics_data: StatisticsData = await client.statistics()
41
table = Table(title='Statistics', header_style='purple')
42
0 commit comments