fastapi-cloud-cli 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fastapi_cloud_cli-0.1.2/LICENSE +21 -0
- fastapi_cloud_cli-0.1.2/PKG-INFO +68 -0
- fastapi_cloud_cli-0.1.2/README.md +23 -0
- fastapi_cloud_cli-0.1.2/pyproject.toml +144 -0
- fastapi_cloud_cli-0.1.2/requirements-tests.txt +7 -0
- fastapi_cloud_cli-0.1.2/requirements.txt +5 -0
- fastapi_cloud_cli-0.1.2/scripts/format.sh +6 -0
- fastapi_cloud_cli-0.1.2/scripts/lint.sh +8 -0
- fastapi_cloud_cli-0.1.2/scripts/test-cov-html.sh +9 -0
- fastapi_cloud_cli-0.1.2/scripts/test.sh +6 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/__init__.py +1 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/__main__.py +3 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/cli.py +29 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/commands/deploy.py +621 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/commands/env.py +246 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/commands/login.py +100 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/commands/logout.py +12 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/commands/whoami.py +27 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/config.py +25 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/logging.py +31 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/api.py +18 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/apps.py +59 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/auth.py +61 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/cli.py +101 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/config.py +21 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/env.py +5 -0
- fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/sentry.py +18 -0
- fastapi_cloud_cli-0.1.2/tests/__init__.py +0 -0
- fastapi_cloud_cli-0.1.2/tests/assets/broken_package/mod/__init__.py +1 -0
- fastapi_cloud_cli-0.1.2/tests/assets/broken_package/mod/app.py +10 -0
- fastapi_cloud_cli-0.1.2/tests/assets/broken_package/utils.py +2 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_api/api.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app/api.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app/app.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_api/app/__init__.py +0 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_api/app/api.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_app/app/__init__.py +0 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_app/app/api.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_app/app/app.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_main/app/__init__.py +0 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_main/app/api.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_main/app/app.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_main/app/main.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_non_default/app/__init__.py +0 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_app_dir_non_default/app/nondefault.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_main/api.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_main/app.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/default_main/main.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/default_files/non_default/nonstandard.py +8 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/__init__.py +2 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/core/__init__.py +0 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/core/utils.py +2 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/mod/__init__.py +1 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/mod/api.py +24 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/mod/app.py +32 -0
- fastapi_cloud_cli-0.1.2/tests/assets/package/mod/other.py +16 -0
- fastapi_cloud_cli-0.1.2/tests/assets/single_file_api.py +24 -0
- fastapi_cloud_cli-0.1.2/tests/assets/single_file_app.py +32 -0
- fastapi_cloud_cli-0.1.2/tests/assets/single_file_other.py +16 -0
- fastapi_cloud_cli-0.1.2/tests/conftest.py +68 -0
- fastapi_cloud_cli-0.1.2/tests/test_cli.py +11 -0
- fastapi_cloud_cli-0.1.2/tests/test_cli_deploy.py +800 -0
- fastapi_cloud_cli-0.1.2/tests/test_cli_login.py +163 -0
- fastapi_cloud_cli-0.1.2/tests/test_cli_logout.py +31 -0
- fastapi_cloud_cli-0.1.2/tests/test_cli_whoami.py +71 -0
- fastapi_cloud_cli-0.1.2/tests/test_config.py +36 -0
- fastapi_cloud_cli-0.1.2/tests/test_deploy_utils.py +64 -0
- fastapi_cloud_cli-0.1.2/tests/test_env_delete.py +145 -0
- fastapi_cloud_cli-0.1.2/tests/test_env_list.py +86 -0
- fastapi_cloud_cli-0.1.2/tests/test_env_set.py +98 -0
- fastapi_cloud_cli-0.1.2/tests/test_sentry.py +22 -0
- fastapi_cloud_cli-0.1.2/tests/utils.py +21 -0
- fastapi_cloud_cli-0.1.0/.gitignore +0 -10
- fastapi_cloud_cli-0.1.0/.python-version +0 -1
- fastapi_cloud_cli-0.1.0/PKG-INFO +0 -6
- fastapi_cloud_cli-0.1.0/pyproject.toml +0 -14
- {fastapi_cloud_cli-0.1.0/src/fastapi_cloud_cli → fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/commands}/__init__.py +0 -0
- {fastapi_cloud_cli-0.1.0 → fastapi_cloud_cli-0.1.2}/src/fastapi_cloud_cli/py.typed +0 -0
- /fastapi_cloud_cli-0.1.0/README.md → /fastapi_cloud_cli-0.1.2/src/fastapi_cloud_cli/utils/__init__.py +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Sebastián Ramírez
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: fastapi-cloud-cli
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Deploy and manage FastAPI Cloud apps from the command line 🚀
|
|
5
|
+
Author-Email: Patrick Arminio <patrick@fastapilabs.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Intended Audience :: Information Technology
|
|
8
|
+
Classifier: Intended Audience :: System Administrators
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
15
|
+
Classifier: Topic :: Software Development
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Classifier: Development Status :: 4 - Beta
|
|
18
|
+
Classifier: Framework :: FastAPI
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
28
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
29
|
+
Project-URL: Homepage, https://github.com/fastapilabs/fastapi-cloud-cli
|
|
30
|
+
Project-URL: Documentation, https://fastapi.tiangolo.com/fastapi-cloud-cli/
|
|
31
|
+
Project-URL: Repository, https://github.com/fastapilabs/fastapi-cloud-cli
|
|
32
|
+
Project-URL: Issues, https://github.com/fastapilabs/fastapi-cloud-cli/issues
|
|
33
|
+
Project-URL: Changelog, https://github.com/fastapilabs/fastapi-cloud-cli/blob/main/release-notes.md
|
|
34
|
+
Requires-Python: >=3.8
|
|
35
|
+
Requires-Dist: typer>=0.12.3
|
|
36
|
+
Requires-Dist: uvicorn[standard]>=0.15.0
|
|
37
|
+
Requires-Dist: rignore>=0.5.1
|
|
38
|
+
Requires-Dist: httpx>=0.27.0
|
|
39
|
+
Requires-Dist: rich-toolkit>=0.14.5
|
|
40
|
+
Requires-Dist: pydantic[email]>=1.6.1
|
|
41
|
+
Requires-Dist: sentry-sdk>=2.20.0
|
|
42
|
+
Provides-Extra: standard
|
|
43
|
+
Requires-Dist: uvicorn[standard]>=0.15.0; extra == "standard"
|
|
44
|
+
Description-Content-Type: text/markdown
|
|
45
|
+
|
|
46
|
+
# FastAPI Cloud CLI
|
|
47
|
+
|
|
48
|
+
<a href="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/test.yml" target="_blank">
|
|
49
|
+
<img src="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/test.yml/badge.svg" alt="Test">
|
|
50
|
+
</a>
|
|
51
|
+
<a href="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/publish.yml" target="_blank">
|
|
52
|
+
<img src="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/publish.yml/badge.svg" alt="Publish">
|
|
53
|
+
</a>
|
|
54
|
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapilabs/fastapi-cloud-cli" target="_blank">
|
|
55
|
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/fastapilabs/fastapi-cloud-cli.svg" alt="Coverage">
|
|
56
|
+
<a href="https://pypi.org/project/fastapi-cloud-cli" target="_blank">
|
|
57
|
+
<img src="https://img.shields.io/pypi/v/fastapi-cloud-cli?color=%2334D058&label=pypi%20package" alt="Package version">
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
**Source Code**: <a href="https://github.com/fastapilabs/fastapi-cloud-cli" target="_blank">https://github.com/fastapilabs/fastapi-cloud-cli</a>
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
This project is licensed under the terms of the MIT license.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# FastAPI Cloud CLI
|
|
2
|
+
|
|
3
|
+
<a href="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/test.yml" target="_blank">
|
|
4
|
+
<img src="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/test.yml/badge.svg" alt="Test">
|
|
5
|
+
</a>
|
|
6
|
+
<a href="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/publish.yml" target="_blank">
|
|
7
|
+
<img src="https://github.com/fastapilabs/fastapi-cloud-cli/actions/workflows/publish.yml/badge.svg" alt="Publish">
|
|
8
|
+
</a>
|
|
9
|
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapilabs/fastapi-cloud-cli" target="_blank">
|
|
10
|
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/fastapilabs/fastapi-cloud-cli.svg" alt="Coverage">
|
|
11
|
+
<a href="https://pypi.org/project/fastapi-cloud-cli" target="_blank">
|
|
12
|
+
<img src="https://img.shields.io/pypi/v/fastapi-cloud-cli?color=%2334D058&label=pypi%20package" alt="Package version">
|
|
13
|
+
</a>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
**Source Code**: <a href="https://github.com/fastapilabs/fastapi-cloud-cli" target="_blank">https://github.com/fastapilabs/fastapi-cloud-cli</a>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
This project is licensed under the terms of the MIT license.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "fastapi-cloud-cli"
|
|
3
|
+
dynamic = []
|
|
4
|
+
description = "Deploy and manage FastAPI Cloud apps from the command line 🚀"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Patrick Arminio", email = "patrick@fastapilabs.com" },
|
|
7
|
+
]
|
|
8
|
+
requires-python = ">=3.8"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Intended Audience :: Information Technology",
|
|
12
|
+
"Intended Audience :: System Administrators",
|
|
13
|
+
"Operating System :: OS Independent",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python",
|
|
16
|
+
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
17
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
18
|
+
"Topic :: Software Development :: Libraries",
|
|
19
|
+
"Topic :: Software Development",
|
|
20
|
+
"Typing :: Typed",
|
|
21
|
+
"Development Status :: 4 - Beta",
|
|
22
|
+
"Framework :: FastAPI",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"License :: OSI Approved :: MIT License",
|
|
25
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
26
|
+
"Programming Language :: Python :: 3.8",
|
|
27
|
+
"Programming Language :: Python :: 3.9",
|
|
28
|
+
"Programming Language :: Python :: 3.10",
|
|
29
|
+
"Programming Language :: Python :: 3.11",
|
|
30
|
+
"Programming Language :: Python :: 3.12",
|
|
31
|
+
"Programming Language :: Python :: 3.13",
|
|
32
|
+
"License :: OSI Approved :: MIT License",
|
|
33
|
+
]
|
|
34
|
+
dependencies = [
|
|
35
|
+
"typer >= 0.12.3",
|
|
36
|
+
"uvicorn[standard] >= 0.15.0",
|
|
37
|
+
"rignore >= 0.5.1",
|
|
38
|
+
"httpx >= 0.27.0",
|
|
39
|
+
"rich-toolkit >= 0.14.5",
|
|
40
|
+
"pydantic[email] >= 1.6.1",
|
|
41
|
+
"sentry-sdk >= 2.20.0",
|
|
42
|
+
]
|
|
43
|
+
version = "0.1.2"
|
|
44
|
+
|
|
45
|
+
[project.license]
|
|
46
|
+
text = "MIT"
|
|
47
|
+
|
|
48
|
+
[project.optional-dependencies]
|
|
49
|
+
standard = [
|
|
50
|
+
"uvicorn[standard] >= 0.15.0",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[project.urls]
|
|
54
|
+
Homepage = "https://github.com/fastapilabs/fastapi-cloud-cli"
|
|
55
|
+
Documentation = "https://fastapi.tiangolo.com/fastapi-cloud-cli/"
|
|
56
|
+
Repository = "https://github.com/fastapilabs/fastapi-cloud-cli"
|
|
57
|
+
Issues = "https://github.com/fastapilabs/fastapi-cloud-cli/issues"
|
|
58
|
+
Changelog = "https://github.com/fastapilabs/fastapi-cloud-cli/blob/main/release-notes.md"
|
|
59
|
+
|
|
60
|
+
[build-system]
|
|
61
|
+
requires = [
|
|
62
|
+
"pdm-backend",
|
|
63
|
+
]
|
|
64
|
+
build-backend = "pdm.backend"
|
|
65
|
+
|
|
66
|
+
[tool.pdm]
|
|
67
|
+
distribution = true
|
|
68
|
+
|
|
69
|
+
[tool.pdm.version]
|
|
70
|
+
source = "file"
|
|
71
|
+
path = "src/fastapi_cloud_cli/__init__.py"
|
|
72
|
+
|
|
73
|
+
[tool.pdm.build]
|
|
74
|
+
source-includes = [
|
|
75
|
+
"tests/",
|
|
76
|
+
"requirements*.txt",
|
|
77
|
+
"scripts/",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
[tool.pytest.ini_options]
|
|
81
|
+
addopts = [
|
|
82
|
+
"--strict-config",
|
|
83
|
+
"--strict-markers",
|
|
84
|
+
]
|
|
85
|
+
xfail_strict = true
|
|
86
|
+
junit_family = "xunit2"
|
|
87
|
+
|
|
88
|
+
[tool.coverage.run]
|
|
89
|
+
parallel = true
|
|
90
|
+
data_file = "coverage/.coverage"
|
|
91
|
+
source = [
|
|
92
|
+
"src",
|
|
93
|
+
"tests",
|
|
94
|
+
]
|
|
95
|
+
context = "${CONTEXT}"
|
|
96
|
+
dynamic_context = "test_function"
|
|
97
|
+
omit = [
|
|
98
|
+
"tests/assets/*",
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
[tool.coverage.report]
|
|
102
|
+
show_missing = true
|
|
103
|
+
sort = "-Cover"
|
|
104
|
+
exclude_lines = [
|
|
105
|
+
"pragma: no cover",
|
|
106
|
+
"@overload",
|
|
107
|
+
"if __name__ == \"__main__\":",
|
|
108
|
+
"if TYPE_CHECKING:",
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[tool.coverage.html]
|
|
112
|
+
show_contexts = true
|
|
113
|
+
|
|
114
|
+
[tool.mypy]
|
|
115
|
+
strict = true
|
|
116
|
+
exclude = [
|
|
117
|
+
"tests/assets/*",
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
[tool.ruff.lint]
|
|
121
|
+
select = [
|
|
122
|
+
"E",
|
|
123
|
+
"W",
|
|
124
|
+
"F",
|
|
125
|
+
"I",
|
|
126
|
+
"B",
|
|
127
|
+
"C4",
|
|
128
|
+
"UP",
|
|
129
|
+
]
|
|
130
|
+
ignore = [
|
|
131
|
+
"E501",
|
|
132
|
+
"B008",
|
|
133
|
+
"C901",
|
|
134
|
+
"W191",
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
[tool.ruff.lint.isort]
|
|
138
|
+
known-third-party = [
|
|
139
|
+
"typer",
|
|
140
|
+
"fastapi",
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
[tool.ruff.lint.pyupgrade]
|
|
144
|
+
keep-runtime-typing = true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.2"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import typer
|
|
2
|
+
|
|
3
|
+
from .commands.deploy import deploy
|
|
4
|
+
from .commands.env import env_app
|
|
5
|
+
from .commands.login import login
|
|
6
|
+
from .commands.logout import logout
|
|
7
|
+
from .commands.whoami import whoami
|
|
8
|
+
from .logging import setup_logging
|
|
9
|
+
from .utils.sentry import init_sentry
|
|
10
|
+
|
|
11
|
+
setup_logging()
|
|
12
|
+
|
|
13
|
+
app = typer.Typer(rich_markup_mode="rich")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# TODO: use the app structure
|
|
17
|
+
|
|
18
|
+
# Additional commands
|
|
19
|
+
app.command()(deploy)
|
|
20
|
+
app.command()(login)
|
|
21
|
+
app.command()(logout)
|
|
22
|
+
app.command()(whoami)
|
|
23
|
+
|
|
24
|
+
app.add_typer(env_app, name="env")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def main() -> None:
|
|
28
|
+
init_sentry()
|
|
29
|
+
app()
|