Skip to content

Commit c610857

Browse files
📚 Update examples
1 parent 795ddcb commit c610857

File tree

26 files changed

+22
-21
lines changed

26 files changed

+22
-21
lines changed

examples/app_data/with_cli.sh

-1
This file was deleted.

examples/app_list/with_cli.sh

-1
This file was deleted.

examples/backup/with_cli.sh

-1
This file was deleted.

examples/commit/with_cli.sh

-1
This file was deleted.

examples/create_file/with_cli.sh

-1
This file was deleted.

examples/creating_config_file/with_cli.sh

-1
This file was deleted.

examples/custom_domain/with_cli.sh

-1
This file was deleted.

examples/delete_file/with_cli.sh

-1
This file was deleted.

examples/deleting_application/with_cli.sh

-1
This file was deleted.

examples/deploy_list/with_cli.sh

-1
This file was deleted.

examples/domain_analytics/with_cli.sh

-1
This file was deleted.

examples/file_list/with_cli.sh

-1
This file was deleted.
File renamed without changes.

examples/getting_application_status/with_cli.sh

-1
This file was deleted.

examples/getting_logs/with_cli.sh

-1
This file was deleted.

examples/github_integration/with_cli.sh

-1
This file was deleted.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import squarecloud as square
2+
3+
client = square.Client(api_key='API KEY')
4+
5+
6+
async def example():
7+
app = await client.app('application_id')
8+
await app.move_file(
9+
origin='path/to/origin/file.py',
10+
dest='path/to/destination/file.py'
11+
)

examples/moving_files/with_client.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import squarecloud as square
2+
3+
client = square.Client(api_key='API KEY')
4+
5+
6+
async def example():
7+
await client.move_app_file(
8+
app_id='application_id',
9+
origin='path/to/origin/file.py',
10+
dest='path/to/destination/file.py'
11+
)
File renamed without changes.

examples/obtaining_app/with_cli.sh

-1
This file was deleted.

examples/read_file/with_cli.sh

-1
This file was deleted.

examples/restarting_app/with_cli.sh

-1
This file was deleted.

examples/starting_app/with_cli.sh

-1
This file was deleted.

examples/stopping_app/with_cli.sh

-1
This file was deleted.

examples/upload_app/with_cli.sh

-1
This file was deleted.

0 commit comments

Comments
 (0)