Repository navigation
Expand file tree
/
Copy pathplatform_helper.py
More file actions
executable file
·49 lines (41 loc) · 2.11 KB
/
Copy pathplatform_helper.py
File metadata and controls
executable file
·49 lines (41 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
from importlib.metadata import version
import click
from dbt_platform_helper.commands.application import application as application_commands
from dbt_platform_helper.commands.codebase import codebase as codebase_commands
from dbt_platform_helper.commands.conduit import conduit as conduit_commands
from dbt_platform_helper.commands.config import config as config_commands
from dbt_platform_helper.commands.copilot import copilot as copilot_commands
from dbt_platform_helper.commands.database import database as database_commands
from dbt_platform_helper.commands.environment import environment as environment_commands
from dbt_platform_helper.commands.generate import generate as generate_commands
from dbt_platform_helper.commands.internal import internal as internal_commands
from dbt_platform_helper.commands.job import job as job_commands
from dbt_platform_helper.commands.notify import notify as notify_commands
from dbt_platform_helper.commands.pipeline import pipeline as pipeline_commands
from dbt_platform_helper.commands.secrets import secrets as secrets_commands
from dbt_platform_helper.commands.service import service as service_commands
from dbt_platform_helper.utils.click import ClickDocOptGroup
@click.group(cls=ClickDocOptGroup)
@click.version_option(
version=version("dbt-platform-helper"),
message=f"dbt-platform-helper %(version)s",
)
def platform_helper():
pass
platform_helper.add_command(application_commands)
platform_helper.add_command(codebase_commands)
platform_helper.add_command(conduit_commands)
platform_helper.add_command(config_commands)
platform_helper.add_command(copilot_commands)
platform_helper.add_command(environment_commands)
platform_helper.add_command(generate_commands)
platform_helper.add_command(internal_commands)
platform_helper.add_command(pipeline_commands)
platform_helper.add_command(secrets_commands)
platform_helper.add_command(notify_commands)
platform_helper.add_command(database_commands)
platform_helper.add_command(service_commands)
platform_helper.add_command(job_commands)
if __name__ == "__main__":
platform_helper(auto_envvar_prefix="DBT_PLATFORM")