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 cf7e8b2 commit c930487Copy full SHA for c930487
main.py
@@ -11,9 +11,19 @@
11
# See the License for the specific language governing permissions and
12
# limitations under the License.
13
14
-
+import typer
15
+from nwastdlib.logging import initialise_logging
16
+from orchestrator import app_settings
17
from orchestrator.cli.main import app as core_cli
18
+from orchestrator.db import init_database
19
+from orchestrator.log_config import LOGGER_OVERRIDES
20
+
21
22
+def init_cli_app() -> typer.Typer:
23
+ initialise_logging(LOGGER_OVERRIDES)
24
+ init_database(app_settings)
25
+ return core_cli()
26
27
28
if __name__ == "__main__":
- core_cli()
29
+ init_cli_app()
0 commit comments