Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.


import typer
from nwastdlib.logging import initialise_logging
from orchestrator import app_settings
from orchestrator.cli.main import app as core_cli
from orchestrator.db import init_database
from orchestrator.log_config import LOGGER_OVERRIDES


def init_cli_app() -> typer.Typer:
initialise_logging(LOGGER_OVERRIDES)
init_database(app_settings)
return core_cli()


if __name__ == "__main__":
core_cli()
init_cli_app()